Hi there,
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.
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.
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 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:
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
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.
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.
Thanks in advance
Thierry
P.S.: I looked the http://social.technet.microsoft.com/Forums/en/exchangesvrdevelopment/thread/2e81ba59-910b-4baf-848a-36ed9681647c but without luck.