•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 423,380 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,816 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 1636 | Replies: 2
![]() |
•
•
Join Date: Jun 2007
Posts: 5
Reputation:
Rep Power: 0
Solved Threads: 0
sql server2005 System.Data.SqlClient.SqlException: An error has occurred while establ
#1
Sep 20th, 2007
I'm using VS2005 & SQL Server 2005 which is installed with VS2005.
Platform is XP SP2.
I've an app that connects to the DB & get some data from it .
The app & DB are on the same machine .
Suddenly When I run the app. , I've that error :
I've searched over the net for that problem & I've done what others did:
1- Enable Remote Connection:Using both TCP/IP & named pipes.
2- Maker sure that the service is running .
3- Add exceptions to the firewall
Then after that ,I'm still facing the same problem .
After all trials ,I've uninstalled VS2005 & all it's component .
After installing it again ,I've the same problem .
So the Solution is ....?!!
Platform is XP SP2.
I've an app that connects to the DB & get some data from it .
The app & DB are on the same machine .
Suddenly When I run the app. , I've that error :
•
•
•
•
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've searched over the net for that problem & I've done what others did:
1- Enable Remote Connection:Using both TCP/IP & named pipes.
2- Maker sure that the service is running .
3- Add exceptions to the firewall
Then after that ,I'm still facing the same problem .
After all trials ,I've uninstalled VS2005 & all it's component .
After installing it again ,I've the same problem .
So the Solution is ....?!!
•
•
Join Date: Sep 2007
Posts: 5
Reputation:
Rep Power: 0
Solved Threads: 0
Re: sql server2005 System.Data.SqlClient.SqlException: An error has occurred while establ
#2
Sep 25th, 2007
•
•
Join Date: Jun 2007
Posts: 5
Reputation:
Rep Power: 0
Solved Threads: 0
Re: sql server2005 System.Data.SqlClient.SqlException: An error has occurred while establ
#3
Sep 26th, 2007
![]() |
•
•
•
•
•
•
•
•
DaniWeb ASP.NET Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
.net access ajax algos apple asp code combo computer custom data database development dom dropdownlist feed hacker hardware internet leopard library linux microsoft module msdn net news operating os reader reuse security skin software sql storage survey system technology theme torvalds upgrade vista weather web wikipedia windows xml xoap xp
- Error while installing SharForge (MS SQL)
- connecting sql to VB.NET (MS SQL)
- Any expert can solve this??? (VB.NET)
- Syntax error in "like" in sql statement (ASP.NET)
- SQL Create table error (ASP.NET)
- Remote Database server error. (C#)
- SqlDataAdapter bind to a listbox (ASP.NET)
- Prblem with sql sever connection (ASP.NET)
Other Threads in the ASP.NET Forum
- Previous Thread: Calling C# function(code behind) from javascript function
- Next Thread: error on 'ajaxToolkit:ToolkitScriptManager' when upload to a host


Linear Mode