Hi. I'm developing an ASP.NET application that is connecting to a SQL Server database using a sql account ie a connection string in the format "Server=THESQLSERVER;Database=theDb;UID=guest;PWD=guest;". Everything works fine in the development environment in Visual Studio. However when I publish the application to my IIS (v5.0) webserver I get the error:
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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server).
Funny thing is that doing exactly the same for a different server works fine when the application is published.
Can anyone provide any pointers or links that might explain this behaviour. I've done some searching around, but can't find anything that obviously relates to the problem. Please don't kill yourselves on this one as this is not a deal-stopping problem. I'm just mighty curious. Thanks. David