使用ESB 2.2 EsbImportUtil.exe
导入itineries时会显示以下错误
我已安装EnterpriseLibrary 5
,GAC也包含EnterpriseLibrary 4.1 dll
。
“Microsoft.Practices.ESB.Configuration.ConfigHelper
”的类型初始值设定项引发了异常。[A]Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ConfigurationSourceSection cannot be cast to [B]Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ConfigurationSourceSection. Type A originates from 'Microsoft.Practices.EnterpriseLibrary.Common, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' in the context 'Default' at location 'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.Practices.EnterpriseLibrary.Common\5.0.414.0__31bf3856ad364e35\Microsoft.Practices.EnterpriseLibrary.Common.dll'. Type B originates from 'Microsoft.Practices.EnterpriseLibrary.Common, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' in the context 'Default' at location 'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.Practices.EnterpriseLibrary.Common\4.1.0.0__31bf3856ad364e35\Microsoft.Practices.EnterpriseLibrary.Common.dll'.
感谢您的帮助
答案 0 :(得分:0)
您是否对esb.config
文件进行了任何更改。添加了新的orchestation,尝试删除它。我有类似的问题;通过删除错误的配置来修复。