Enterprise Library 3.1 and ASP.NET Web.config

G

Guest

In EnterpriseLibrary 1.1 I could create the following in the web.config of an
ASP.NET app. Is this possible with EntLib 3.1? If so what is the xmls value
which should be used? Thanks!

<enterpriselibrary.configurationSettings
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
applicationName="Application"
xmlns="http://www.microsoft.com/practices/enterpriselibrary/08-31-2004/configuration">
<configurationSections>
....configurationSections here...
</configurationSection>
</configurationSections>
 
G

Guest

Here is an example of an actual web.config entry using Entlib 3.0:

<configuration>
<configSections>
<section name="dataConfiguration"
type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings,
Microsoft.Practices.EnterpriseLibrary.Data, Version=3.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"/>
</configSections>
<dataConfiguration defaultDatabase="ConnectionString1">
<providerMappings>
<add
databaseType="Microsoft.Practices.EnterpriseLibrary.Data.Sql.SqlDatabase,
Microsoft.Practices.EnterpriseLibrary.Data, Version=3.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a" name="System.Data.SqlClient"/>
</providerMappings>
</dataConfiguration>
 
G

Guest

Thanks

Peter Bromberg said:
Here is an example of an actual web.config entry using Entlib 3.0:

<configuration>
<configSections>
<section name="dataConfiguration"
type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings,
Microsoft.Practices.EnterpriseLibrary.Data, Version=3.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"/>
</configSections>
<dataConfiguration defaultDatabase="ConnectionString1">
<providerMappings>
<add
databaseType="Microsoft.Practices.EnterpriseLibrary.Data.Sql.SqlDatabase,
Microsoft.Practices.EnterpriseLibrary.Data, Version=3.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a" name="System.Data.SqlClient"/>
</providerMappings>
</dataConfiguration>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top