|
Author: Jenny Nguyen
|
|
After creating a new project and you attempt to establish a connection to the database you encounter this error "Unrecognized configuration section dataConfiguration". <add name="Production" connectionString="Database=AdventureWorks;Server=testserver;User Id=devuser; Password=devuser;" providerName="System.Data.SqlClient"/> You are getting this error because you either havent created the dataConfiguration section or you have note place it in the right place in the web.config file. Solutions: <configSections> Then insert this code inside the tag <configuration> <dataConfiguration defaultDatabase="Production"/>
|