My ASP.NET application runs perfectly on the Development server but when I try to deploy it to the local IIS server or a free hosting provider server, it turns with an unhandled exception in both cases an the error in the latter case being:
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)
I’ve spent days trying to sort out this problem but every where it asks for checking the remote login connections.In spite of all that, the error turns out again and again. Please help.
The following article may help:
How to configure SQL Server 2005 to allow remote connections