|
sql
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Can't connect from ASP.Net 2.0 to SQL2000 after installing SQL2005
I have a web application in ASP.Net 2.0 that needs to connect to a local SQL2000 DB. After I installed SQL2005 this web app stopped working. I get the following inner exception: {"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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)"} So after unsuccessfully googling I'm at least pretty sure about the following: My web app thinks it's talking to a SQL2005 server. That one by default uses shared memory when local. I think SQL2000 uses TCP/IP. Who can tell me what I have to do so that my ASP.Net 2.0 web app properly connects to SQL2000? Among the ideas on Google there were cliconfg.exe, using <clear /> in the <connectionStrings> area in web.config and a couple more. But none of them worked. Thanks a lot, Christoph I'm having a very similar error, only mine connects locally but not remotely.
I was able to change the error slightly by putting the referencing the database by domain and db, myMachine/myDB. If it helps I looked at my log and it gave an error of 17187 which seems to be a file in use, full disk, or low memory. Still researching. If I find it I'll let you know. If you find the answer would you please post it so I can try it too? -- Show quoteHide quote---------------------------------------- Magic is not in the hands of the magician but in the mind of the audience. Animadverto est verus "Christoph Wienands" wrote: > Hey guys, > > I have a web application in ASP.Net 2.0 that needs to connect to a local > SQL2000 DB. After I installed SQL2005 this web app stopped working. I get > the following inner exception: > > {"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: SQL Network Interfaces, error: 26 - Error Locating > Server/Instance Specified)"} > > So after unsuccessfully googling I'm at least pretty sure about the > following: My web app thinks it's talking to a SQL2005 server. That one by > default uses shared memory when local. I think SQL2000 uses TCP/IP. > > Who can tell me what I have to do so that my ASP.Net 2.0 web app properly > connects to SQL2000? Among the ideas on Google there were cliconfg.exe, > using <clear /> in the <connectionStrings> area in web.config and a couple > more. But none of them worked. > > Thanks a lot, Christoph > > >
Other interesting topics
Attaching SQL Server 2000 database on SQL Serve 2005
Difference between 2000 and 2005. Maybe a bug? Sql Server 2005 - SMS "Modify Table option" times out when trying to 'alter' very large table sql2k log backup user accounts after restore in SQL 2000 SQLExpress Rename Cluster Instance - New Hardware - Keep Name Moving the SQL 2005 System Tables query performance with large tables linked server to Excel |
|||||||||||||||||||||||