I have developed a test site in asp.net. While it is in running of the in built webserver it functions fine and am able to access the database (msde). But when i host it on IIS server on the same machine I get the following error whenever the site accesses the database:
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)
How do I overcome this error.
The connection string in my web.config is as follows:
<connectionStrings>
<add name="Cloud" providerName="System.Data.SqlClient" connectionString="server=naheed-pc1\mycloudflash;database=cloud;uid=sa;pwd=!cloud.123" />
</connectionStrings>
Please assist.