locked
Unable to install routing agent on Exchange 2010 RRS feed

  • Question

  • Hi,

    I am trying to install a Routing Agent(C#)compiled in VS2010(I tried for Target version NET 3.5 and for Target version NET 4.0) against an Exchange 2010 SP2 environment but receives this error:

    "Could not load file or assembly 'file:///D:\EXCH\Public\TransportAgent2010.dll' or one of its dependencies. This assembly is built by a runtime newer than currently loaded runtime and cannot be loaded.

    + CategoryInfo          : InvalidArgument: (:) [Install-TransportAgent], BadImageFormatException   

    + FullyQualifiedErrorId :3BBA3521,Microsoft.Exchange.Management.AgentTasks.InstallTransportAgent"

    I copied Microsoft.Exchange.Data.Common.dll and Microsoft.Exchange.Data.Transport.dll from server machine to my build machine. I referenced these 2 dlls in my project. As I already mentioned I built agent dll for Target version NET 3.5 and for Target version NET 4.0. I build it with "Release" and "Any CPU" configuration.

    Exchange machine OS is Windows Server 2008 R2 Standard SP1  64 bit.

    On the Exchange machine installed NET Framework 4 Extended and NET Framework 4 Client Profile.

    Thanks in advance,

    Vitaly

    Tuesday, February 4, 2014 12:00 PM