views:

23

answers:

1

I have a web-application which is reciving the following while trying to connect to a database hosted on another server.

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)

Now, there problem here is that the connection strings, and the server paths area all perfect.

  1. The site run correctly when run via cassini, on my local machine. (Connections strings are correct.)
  2. Other sites hosted on the same server are able to access the databse. (Server paths ara all active.)
  3. While the error says it's been unable to connect, Activity Monitor is aware of the query, and the Server Logs show no error. (Just odd.)

Google & Bing have massively failed with this, so I guess it's time to hit the Stack!

A: 

Open the Sql Server Conifguration Manager, expand Sql Server 2005 Network Configuration, click Protocols for <Yourserverinstance>, then check TCP/IP is enabled.

ck
Thats not it, the server is configured correctly, we have other websites site up on the same webserver accessing the same database server, without any problems. (Adn the connections all work remotely from my development machine.)
MrLink
Do your other connections to the use the IP Address or server name? make sure they are all consistent. Failing that, do you have any secure firewall that could be blocking traffic?
ck