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

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
 
G

Guest

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?)
 
J

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
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top