嗨,我需要使用企業庫5來保持企業環境中的全局一致性。不幸的是,我們在我們的機器上安裝了biz talk。企業庫似乎與ESB工具包相沖突。 ESB Toolkit爲4.1版的企業庫在machine.config中創建一個部分。每次運行我的應用程序時,它都會從machine.config中讀取配置,並且應用程序捕獲異常。ESB工具包和企業庫衝突
爲了解決這個我包括
<section name="enterpriseLibrary.ConfigurationSource" type="Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ConfigurationSourceSection, Microsoft.Practices.EnterpriseLibrary.Common, Version=5.0.505.0,Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
在我的web.config文件
但是當我運行這個它說
There is a duplicate 'enterpriseLibrary.ConfigurationSource' section defined
,因爲它仍然要Machine.config中讀取enterpriseLibrary.ConfigurationSource 。我該如何解決這個問題?
我試過這個不知道爲什麼它沒有工作 – nzdev 2013-05-07 05:20:32