ESB工具包和企业库冲突 [英] ESB Toolkit and Enterprise Library collision

查看:53
本文介绍了ESB工具包和企业库冲突的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用企业库5来在企业环境中全面维护一致性。不幸的是,我们的机器上安装了biz talk。看来企业库与ESB Toolkit冲突。 ESB Toolkit在machine.config中为企业库(版本4.1)创建了一个部分。每次我运行我的应用程序时,它都会从machine.config中读取配置,应用程序会捕获到异常。

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"/> 

在我的web.config文件中,但是当我运行它时,它说

in my web.config file but when i run this it says

There is a duplicate 'enterpriseLibrary.ConfigurationSource' section defined 

因为它仍然要进入machine.config来读取enterpriseLibrary.ConfigurationSource。我该如何解决这个问题?

because its still going to machine.config to read the enterpriseLibrary.ConfigurationSource. How can i resolve this issue?

推荐答案

我已经解决了这个问题,我的答案在以下链接ESB工具箱和企业库与IIS Web.Config发生冲突

I have solved this issue and my answer is at the following link ESB Toolkit and Enterprise Library collision with IIS Web.Config

在下面的Microsoft论坛上可以找到我为得到解答所采用的故障排除步骤。
ESB工具包和企业库与IIS Web.Config冲突

And the troubleshooting steps I have taken to come to the answer is available at the following Microsoft forum. ESB Toolkit and Enterprise Library collision with IIS Web.Config

这篇关于ESB工具包和企业库冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆