TransportAgentFactory类型“MyAgents.MyAgentFactory”不存在。 TransportAgentFactory类型必须是传输代理工厂的Microsoft .NET类类型。 [英] The TransportAgentFactory type "MyAgents.MyAgentFactory" doesn't exist. The TransportAgentFactory type must be the Microsoft .NET class type of the transport agent factory.
问题描述
您好,
我想为Exchange 2010创建一个传输代理。首次尝试时,我只想让此代码正常工作:
http://msdn.microsoft.com/en-us/library/aa579185%28v=exchg.140%29.aspx
这是示例代码。
I would like to create a transport agent for Exchange 2010. For my first try, I just want to make this code work:
http://msdn.microsoft.com/en-us/library/aa579185%28v=exchg.140%29.aspx
It's the sample code.
我使用Windows Server 2008 R2 SP2 + Exchange 2010 SP2 R2创建了一个VM。然后我安装了Visual Studio 2010,当然还有传输代理SDK。
I created a VM with Windows Server 2008 R2 SP2 + Exchange 2010 SP2 R2. Then I installed Visual Studio 2010 and of course the transport agent SDK.
我创建了一个新的VB项目(DLL)并粘贴了页面中的代码。我指定代码应该使用.NET Framework 3.5,最后添加两个引用:
I create a new VB project (DLL) and paste the code from the page. I specify the code should use .NET Framework 3.5 and finally a add both references:
microsoft.exchange.data.transport.dll和microsoft.exchange.data.common.dll。我可以构建项目并获得我的DLL。但是,每次我尝试安装我的DLL时,都会收到以下错误消息:
microsoft.exchange.data.transport.dll and microsoft.exchange.data.common.dll. I can build the project and got my DLL. However, everytime I try to install my DLL, i get the following error message:
TransportAgentFactory类型"MyAgents.MyAgentFactory"不存在。 TransportAgentFactory类型必须是传输代理工厂的Microsoft .NET类类型。
参数名称:TransportAgentFactory
+ CategoryInfo :InvalidArgument :( :) [Install-TransportAgent],ArgumentException
+ FullyQualifiedErrorId:78472B5B,Microsoft.Exchange.Management.AgentTasks.InstallTransportAgent
The TransportAgentFactory type "MyAgents.MyAgentFactory" doesn't exist. The TransportAgentFactory type must be the Microsoft .NET class type of the transport agent factory.
Parameter name: TransportAgentFactory
+ CategoryInfo : InvalidArgument: (:) [Install-TransportAgent], ArgumentException
+ FullyQualifiedErrorId : 78472B5B,Microsoft.Exchange.Management.AgentTasks.InstallTransportAgent
我阅读了很多帖子甚至尝试使用microsoft.exchange.data.transport.dll和microsoft.exchange来自SP1的.data.common.dll没有成功。
I read a lot of posts and even tried to use the microsoft.exchange.data.transport.dll and microsoft.exchange.data.common.dll from SP1 without success.
我不明白为什么它不起作用。代码非常简单,C#版本没有问题。
I don't understand why it does not work. The code is very simple and the C# version works without problem.
我可能会错过一些东西,但我找不到,所以我在这里问你们。
I probably miss something but I don't find so i'm here to ask you guys.
提前致谢
Thierry
PS:我看了http://social.technet.microsoft.com/Forums/ en / interchangevrdevelopment / thread / 2e81ba59-910b-4baf-848a-36ed9681647c但没有运气。
P.S.: I looked the http://social.technet.microsoft.com/Forums/en/exchangesvrdevelopment/thread/2e81ba59-910b-4baf-848a-36ed9681647c but without luck.
推荐答案
几个月前我遇到过这个问题。 我不记得我做了什么,但我认为这是因为E2010 SP2现在要求你重新编译引用SP2 DLL的代码。 我记得当时认为会有一些
的运输代理商和那些将会因此而略有建议的供应商。
I encountered this a few months ago. I can't remember exactly what I did, but I think it was because E2010 SP2 now requires you to recompile your code referencing the SP2 DLLs. I remember thinking at the time that there are going to be a few transport agent vendors out there who are going to be somewhat PO'd by this.
这篇关于TransportAgentFactory类型“MyAgents.MyAgentFactory”不存在。 TransportAgentFactory类型必须是传输代理工厂的Microsoft .NET类类型。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!