ESB 2.2 EsbImportUtil.exe'Microsoft.Practices.ESB.Configuration.ConfigHelper'的类型初始化程序抛出异常

时间:2013-12-06 08:02:30

标签: biztalk-deployment

使用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'.

感谢您的帮助

1 个答案:

答案 0 :(得分:0)

您是否对esb.config文件进行了任何更改。添加了新的orchestation,尝试删除它。我有类似的问题;通过删除错误的配置来修复。

检查: - http://social.msdn.microsoft.com/Forums/en-US/bf2446fd-87fb-462a-8b78-cde7026bfdf5/the-type-initialize-for-microsoftpracticesesbconfigurationconfighelper-threw-an-exception?forum=biztalkesb