Note that there are some explanatory texts on larger screens.

plurals
  1. POHowto get 'custom web server' working? IIS7.5 VS2010
    primarykey
    data
    text
    <blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://stackoverflow.com/questions/9830961/sql-server-2008-r2-express-error-asp-net">SQL Server 2008 R2 Express Error ASP.NET</a> </p> </blockquote> <p>When I run a web project in VS2010 I receive the following error (I have installed SQL Server 2008 R2 Express on Windows 7):</p> <p>A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)</p> <p>It's seems like I found what causes the error, but I have no clue why.</p> <p>For my website I created a website with some virtual folders and applications. I need an url in my logic. Therefor I use a hostheader (like <a href="http://server.name.tld" rel="nofollow noreferrer">http://server.name.tld</a>)</p> <p>In VS2010 I configured Property pages -> start options -> use custom web server with the url (same as the earlier mentioned host header).</p> <p>If I do that I get the error.</p> <p>If I use use Property pages -> start options -> default web server, it seems that I get a connection to the db.</p> <p>But I need the use of the host header.</p> <p>What do I need to do, to get the 'custom web server' working?</p> <p>I already made changes in the hosts file (127.0.0.1 <a href="http://server.name.tld" rel="nofollow noreferrer">http://server.name.tld</a>)</p> <p>[update]</p> <p>Anyone knowing good tutorials, sites, books knows about subjects like this (all on the use of host headers, subdomains, host files, dns, etc.). What knowledge is relevant?</p> <p>[update 2 24-3-2012]</p> <p>Tried today also with a test virtual machine with windows server 2008. Still getting the error.</p> <p>Also made a test web application, without an IIS site an without a host-header. That one works just fine (using the same connectstring). Also on the VM.</p> <p>I am lost. I really need someone who can exchange some knowledge to me in this field ...</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload