.NET 3.5 / 4.0中的Install-TransportAgent问题 [英] Install-TransportAgent issues with .NET 3.5/4.0

查看:71
本文介绍了.NET 3.5 / 4.0中的Install-TransportAgent问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此帖子也已在Exchange 2010论坛中交叉发布,
http://social.technet.microsoft.com/Forums/en-US/exchange2010/thread/584581d9-dab6-4c59-848e-4f24c59e32fb/
,但其中一位版主要求我在此处发布 -

This post has also been cross-posted in Exchange 2010 forum, http://social.technet.microsoft.com/Forums/en-US/exchange2010/thread/584581d9-dab6-4c59-848e-4f24c59e32fb/, but one of the moderators asked me to post it here-

我正在尝试在VS2010中针对Exchange 2010 SP1环境安装首次针对.NET 3.5编译的传输代理,但收到此错误:

I am trying to install a Transport Agent first compiled for .NET 3.5 in VS2010 against an Exchange 2010 SP1 environment but receives this error:

无法加载文件或程序集'file:/// XXX'或其依赖项之一。此程序集由比当前加载的运行时更新的运行时构建,无法加载。    + CategoryInfo         
:InvalidArgument :( :) [Install-TransportAgent],BadImageFormatException    + FullyQualifiedErrorId:31BC3A31,Microsoft.Exchange.Management.AgentTasks.InstallTransportAgent

Could not load file or assembly 'file:///XXX' 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 :31BC3A31,Microsoft.Exchange.Management.AgentTasks.InstallTransportAgent

为.NET 4.0获取相同的错误。尝试将PowerShell支持的CLR更改为包含4.0并运行

Get same error for .NET 4.0. After trying changing the PowerShell supported CLR's to include 4.0 and running

[PS] C:\ Windows \ system32> [Environment] :: Version.ToString()

4.0.30319.1

[PS] C:\Windows\system32>[Environment]::Version.ToString()
4.0.30319.1

从2010年10月开始查看传输代理SDK,但是它们被配置为针对.NET 2.0进行编译,因为Exchange 2010 SP1引用了程序集,所以它们无法运行(Microsoft .Exchange.Data.Transport.dll和Microsoft.Exchange.Data.Common.dll)
需要.NET 3.5。

Have looked trough Transport Agents SDK October 2010 form Microsoft but they are configured to be compiled against .NET 2.0 which will not work because Exchange 2010 SP1 referenced assemblies (Microsoft.Exchange.Data.Transport.dll and Microsoft.Exchange.Data.Common.dll) require .NET 3.5.

所以摘要:

1)Exchange Shell安装 - TransportAgent似乎在Exchange 2010 SP1中出现故障,试图安装在.NET 3.5 / 4.0中编译的传输代理

1) Exchange Shell Install-TransportAgent seems to be broke in Exchange 2010 SP1 trying to install a Transport Agent compiled in .NET 3.5 / 4.0

2)尝试针对2.0结果进行编译在破坏的代码中,因为引用的程序集需要.NET 3.5

2) Trying to compile against 2.0 results in broken code because the referenced assemblies require .NET 3.5

有任何建议如何修复它?

Any suggestion how this can be fixed ?

推荐答案

我遇到了同样的问题。任何人有任何解决方法或解决方案吗?
I'm having exact same issue. Anyone have any workarounds or solutions?


这篇关于.NET 3.5 / 4.0中的Install-TransportAgent问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆