Yes you need to add the dataConfiguration section to web.config.
First you need to add dataConfiguration to the ConfigurationSections list in your web.config:
<configSections> <section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> </configSections>
Then you need to add your connection lines to web.config (you've already done this):
<connectionStrings> <add name="LocalSqlServer" connectionString="Data Source=MSTR;Initial Catalog=USERDb;Integrated Security=true;" providerName="System.Data.SqlClient"/> </connectionStrings>
Then you need to add the actual DataConfiguration section to web.config:
<dataConfiguration defaultDatabase="LocalSqlServer"/>
You can also use the corporate library customization tool to do this for you.
source share