Getting error error: 26 - Error Locating Server/Instance Specified

  • Thread starter Thread starter juvi
  • Start date Start date
J

juvi

Hello,

I have a strange problem. I have a connection string to ActiveDirectory and
SQL Server. When debugging on developement machine everything is working
great. However when I use it on our webserver I get the following error:

error: 26 - Error Locating Server/Instance Specified

The strange thing is that the project contains more pages that uses the same
connection string and I get this error only on one site. The other site can
write and read to/from database.

Please help.

juvi
 
error: 26 - Error Locating Server/Instance Specified

The strange thing is that the project contains more pages that uses the same
connection string and I get this error only on one site. The other site can
write and read to/from database.

So, what is different then? Is this page failed on AD connection (a
linked server?)
 
Thx for your reply.

Solved it already now - during deployment there seems to be an invisible
Connection String to LocalSQLServer that was not correct.

I attached the ASPNETDB.mdf to SQL Server and deleted the invisible
CN-String through IIS -> ASP.net configuration

Then appended the needed LocalSQLServer connection string to web.config file
and then it worked.

juvi
 
Thx for your reply.

Solved it already now - during deployment there seems to be an invisible
Connection String to LocalSQLServer that was not correct.

I attached the ASPNETDB.mdf to SQL Server and deleted the invisible
CN-String through IIS -> ASP.net configuration

Then appended the needed LocalSQLServer connection string to web.config file
and then it worked.

juvi

okay, glad that this works now
 
Back
Top