I've import my SQL 2005 database to my project and i am trying to connect to the database using the web.config
But I've this error when I add the connectionString to the web.config.
<add name="strConn" connectionString="Data Source=.\sqlexpress;Initial Catalog=intranet_db;Integrated Security=True"
providerName="System.Data.SqlClient"/>
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid. Detailed Error Information:
- Module IIS Web Core
- Notification Unknown
- Handler Not yet determined
- Error Code 0x80070032
- Config Error The configuration section 'add' cannot be read because it is missing a section declaration
- Config File \?\C:\Users\user\Documents\Visual Studio 2012\Projects\test\test\web.config
- Requested URL localhost:64198/
- Physical Path
- Logon Method Not yet determined
- Logon User Not yet determined
Request Tracing Directory
C:\Users\user\Documents\IISExpress\TraceLogFiles\Am I doing it wrong? What should I add in the web.config?
Thanks.