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

  • Thread starter Thread starter Cirene
  • Start date Start date
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!
 
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.





Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
 
Back
Top