Willy
-
7/21/2011 1:22:06 AM
Kentico + sub site interaction problem due to web.config configSections and EnterpriseLibrary version
Hi
I currently have a Kentico CMS 5.5 R2 installed, and within that, I have a normal ASP.NET application as a sub site. I am upgrading my ASP.NET application: .NET framework 2.0 to .NET framework 4.0 and EnterpriseLibrary 3.1 to EnterpriseLibrary 5.0 Once installed, I keep getting problems with my web.config. I found out that Kentico’s web.config is using Enterprise Library 3.1, and hence there is a conflict in the web.config in the configSections: Kentico uses <section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> ASP.NET application uses <section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="true"/>
How do I fix this problem? Location tag does not work in configSections. Clear and Remove tags don’t help either in configSections. If I were to reinstall Kentico CMS with .Net framework 4.0 selected in the web installer, will the web.config file of Kentico CMS change to using EnterpriseLibrary5.0 ? or I have to change my asp.net application to use EnterpriseLibary 3.1 as well , so that both Kentico and application end up using the same dll, and hence, avoid the configSections mismatch isse.
Any help is appreciated!
|