问题描述
我建立了一个简单的传输代理为Exchange 2010(使用.NET 4.0),我尝试使用Exchange管理外壳安装它,但我碰到这个错误运行:
I have built a simple transport agent (using .NET 4.0) for exchange 2010 and I'm trying to install it using the exchange management shell, but I run across this error:
Could not load file or assembly 'file:///C:\Program Files\Microsoft\Exchange Server\V14\Public\MySimpleAgent.
dll' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot
be loaded.
+ CategoryInfo : InvalidArgument: (:) [Install-TransportAgent], BadImageFormatException
+ FullyQualifiedErrorId : 3A033BB9,Microsoft.Exchange.Management.AgentTasks.InstallTransportAgent
我真的只找到了一个很好的这个问题公开讨论的,而是由一些建议的解决方案并没有帮助我的情况。
I really only found one good public discussion of this issue, but the solutions suggested by some have not helped my situation.
我有:
- 确信,我的项目同时引用
Microsoft.Exchange.Data.Transport
和Microsoft.Exchange.Data.Common
- 在部署了我总成(IES),以
\程序Files \ Microsoft \ Exchange服务器\ V14 \公共
- Made sure that my project references both
Microsoft.Exchange.Data.Transport
andMicrosoft.Exchange.Data.Common
- Deployed my assembly(ies) to
\Program Files\Microsoft\Exchange Server\V14\Public
任何其他建议?
推荐答案
我追我的尾两天试图找出这一个。问题结束了,在我的项目没有的dll的版本匹配集线器传输服务器上的公共文件夹中引用的Microsoft.Exchange.Data.Common和Microsoft.Exchange.Data.Transport DLL的版本。更新我引用的DLL的正确版本后,这个问题就走开了。
I chased my tail for two days trying to figure this one out. The problem ended up being that the version of the Microsoft.Exchange.Data.Common and Microsoft.Exchange.Data.Transport dlls referenced in my project did not match the version of the dll's in the "public" folder on the hub transport servers. After updating my referenced dll's to the correct version the problem went away.
这篇关于Exchange Server传输代理程序将不加载,"内置到一个较新的运行时间和QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!