Exchange 2010 用の単純なトランスポート エージェント (.NET 4.0 を使用) を構築し、Exchange 管理シェルを使用してインストールしようとしましたが、次のエラーが発生しました。
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
この問題に関する公の良い議論は1 つしか見つかりませんでしたが、一部の人が提案した解決策は私の状況を改善しませんでした。
私は持っている:
- 私のプロジェクトが と の両方
Microsoft.Exchange.Data.Transport
を参照していることを確認しましたMicrosoft.Exchange.Data.Common
- アセンブリをデプロイしました
\Program Files\Microsoft\Exchange Server\V14\Public
他の提案はありますか?