I have recently built a transport agent (using .NET) for Microsoft Exchange 2010 and I've been trying to install it using the Exchange Management Shell but I keep getting this error:
Could not load file or assembly 'file:///C:Program FilesMicrosoftExchange ServerV14PublicMySimpleAgent.
dll' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot
+ CategoryInfo : InvalidArgument: (:) [Install-TransportAgent], BadImageFormatException
+ FullyQualifiedErrorId : 3A033BB9,Microsoft.Exchange.Management.AgentTasks.InstallTransportAgent