Click here to Skip to main content
15,899,314 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
ASM
SqlException was unhandled by user code.

a network related or instance-specific error occurred while establishing a connection to server. The server was not found or was 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)
Posted

 
Share this answer
 
Comments
Espen Harlinn 8-Apr-12 6:59am    
Nice link :-D
Monjurul Habib 8-Apr-12 12:18pm    
5!
VJ Reddy 8-Apr-12 20:53pm    
Good link. +5
In Sql Server Configuration Manager set Network Configuration->TCP/IP to Enabled
 
Share this answer
 
Your server could be down. or the connection string may be incorrect. There are many scenarios though.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900