If you receive the following application error message from your web application:
Parser Error Message: The
connection name 'LocalSqlServer' was not found in the applications
configuration or the connection string is empty.
The solution is to modify your application's web.config file and add the following line to the connection string element:
<connectionStrings>
|
<remove name="LocalSqlServer" />
<add name="LocalSqlServer" connectionString="Data Source=DBServerName;Integrated Security=false;Initial Catalog=DBName;User ID=DBLogin;Password=DBPassword" providerName="System.Data.SqlClient" /> |
</connectionStrings> |
Note: You must ensure that you add the correct values for the connection string. Log into your control panel and review your database information and DB login credentials in the database manangement-->sql server managment
Article ID: 150, Created: July 24, 2012 at 1:00 AM, Modified: July 24, 2012 at 1:00 AM