Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 .net 2.0 fails to connect to sql 2000 using

Author  Topic 

sqlghost
Starting Member

23 Posts

Posted - 2006-03-15 : 18:23:31
I am starting to develop using vs 2005 and .net 2.0 and am running into trouble connecting to my db.

i am use to .net 1.1 and have a db class i use for connecting and doing other db related actions. it works fine in 1.1 but in 2.0 i get the following error when attempting to connect to the db.

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)

the odd thing is i am using sql 2000 so i am not sure why it is even saying 2005.

any help would be appreciated.

bschellva
Starting Member

1 Post

Posted - 2006-04-03 : 12:01:04
I am having the same problem. I am using MSDE 2000 but keep getting the 2005 error message. I never had this problem before upgrading the code to VS2005 and .NET 2.0. Any solutions would be very much appreciated!
Go to Top of Page
   

- Advertisement -