Is LocalSqlServer necessary for web.config connection string???

C

Cirene

All my SQLDataSources reference the "ConnectionString" in my web.config.
Everything works on my dev machine.

When I uploaded everything to the server the db stuff would NOT work until I
added a "<remove name="LocalSqlServer"/>" and "<add name=LocalSqlServer"
connectionString="......" to the web.config.

Why is this?

I don't even refer to "LocalSqlServer" in my project!
 
J

Juan T. Llibre

re:
!> I don't even refer to "LocalSqlServer" in my project!

"LocalSqlServer" is the default connection.
If you don't want to use it, or you need to re-define it, you must remove it.
 

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

No members online now.

Forum statistics

Threads
474,172
Messages
2,570,933
Members
47,472
Latest member
blackwatermelon

Latest Threads

Top