SQL Express - When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider,

Hi,

I have SQL Server Express Edition. I tried working out some ASP.NET Labs in my local system. Here is the link of the Virtual Lab which I tried.

http://msevents.microsoft.com/CUI/WebCastEventDetails.aspx?EventID=1032286906&EventCategory=3&culture=en-US&CountryCode=US

I recieve this error in my local system.

An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

I tried working out solutions from various websites. But the no solution is effective. Could anyone help me in solving this issue.
 


Thanks,
Kreshiv Madhan.
0
Manmadhan
4/11/2008 12:29:26 AM
📁 asp.net.sql-datasource
📃 29906 articles.
⭐ 0 followers.

💬 3 Replies
👁️‍🗨️ 210 Views

I had similar experience recently , believe it or not i forgot how i resolved it , i think permissions issue , you may need to grant user / role ability to connect insert delete etc to database... at the time i remember i was very badly mislead solutions i read when i googled error message

0
anthonypj
4/11/2008 1:18:11 AM

Thanks for your suggestions. I tried starting up with all SQL Server related services in Administrative Tools/Services, and things got resolved.

 
 


Thanks,
Kreshiv Madhan.
0
Manmadhan
4/11/2008 6:12:32 AM

Hi , even I am facing the same issue...I could connnect to sqlserver through web application, but when I tried to connect through webservice,it is giving the above error ? Is there any server setting need to be changed when we are connecting from webservices ?

0
raj
12/21/2008 4:33:06 PM
Reply:
(Thread closed)

Related Posts: