Hi i need to use enterprise library 5 to maintain consistency across the board in the enterprise environment. Unfortunately we have got biz talk installed in our machines. It seems that enterprise library collides with ESB Toolkit. ESB Toolkit creates a section in machine.config for enterprise library which is version 4.1. Every time i run my application it reads the config from machine.config and the application catches the exception.
To solve this i included
<section name="enterpriseLibrary.ConfigurationSource" type="Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ConfigurationSourceSection, Microsoft.Practices.EnterpriseLibrary.Common, Version=5.0.505.0,Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
in my web.config file but when i run this it says
There is a duplicate 'enterpriseLibrary.ConfigurationSource' section defined
because its still going to machine.config to read the enterpriseLibrary.ConfigurationSource. How can i resolve this issue?
Instead of adding a duplicate section, do a binding redirect: