Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
salmonraju
Yak Posting Veteran
54 Posts |
Posted - 2007-08-28 : 05:39:43
|
Hi,I am Creating ASP.Net application,in my website I am using Login ControlsMy Machine.Config contains following for connection stringadd name="LocalSqlServer" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient" /connectionStringsDataSource=.\SQLEXPRESS, But my system doesnot Have SQLExpressI want to modify this, I changed my Web.Config asadd name="LocalSqlServer" connectionString="data source=.;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient" When I am executing the web site I am getting the following errorsThe entry 'LocalSqlServer' has already been added |
|
jsmith8858
Dr. Cross Join
7423 Posts |
Posted - 2007-08-28 : 10:50:38
|
you cannot have two entries with the same name. Remove the old one or rename it to "localsqlserver_old" or something like that.- Jeffhttp://weblogs.sqlteam.com/JeffS |
|
|
|
|
|