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.
I have:
- 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
Any other suggestions?