Install-TransportAgent : Invalid agent configuration in file...

Feb 23, 2009 at 10:08 AM
Hi Wilbert, I'm getting the same error on another Small Business Server 2008:

Install-TransportAgent : Invalid agent configuration in file 'C:\Program Files\
Microsoft\Exchange Server\TransportRoles\Shared\agents.config'.
At line:1 char:23
+ install-transportagent  <<<< -Name "CatchAll Agent" -TransportAgentFactory:Ca
tchAll.CatchAllFactory -AssemblyPath:"C:\catchallagent\CatchAllAgent.dll"

I've uploaded the file referenced to my site:

http://eklaus.co.uk/agents.rar

Would love to get this working, so any help much appreciated.

Nick
Coordinator
Feb 24, 2009 at 3:17 AM

Nick,

Does get-transportagent work fo you? I expect it should return the same value.

If so, you can make a backup of that file, and manuall edit the file to create an entry for the agnt in it.

-Wilbert



From: [email removed]
To: [email removed]
Date: Mon, 23 Feb 2009 02:08:26 -0800
Subject: Install-TransportAgent : Invalid agent configuration in file... [catchallagent:48203]

From: nicklloyd
Hi Wilbert, I'm getting the same error on another Small Business Server 2008:

Install-TransportAgent : Invalid agent configuration in file 'C:\Program Files\
Microsoft\Exchange Server\TransportRoles\Shared\agents.config'.
At line:1 char:23
+ install-transportagent <<<< -Name "CatchAll Agent" -TransportAgentFactory:Ca
tchAll.CatchAllFactory -AssemblyPath:"C:\catchallagent\CatchAllAgent.dll"

I've uploaded the file referenced to my site:

http://eklaus.co.uk/agents.rar

Would love to get this working, so any help much appreciated.

Nick
Read the full discussion online.
To add a post to this discussion, reply to this email (catchallagent@discussions.codeplex.com)
To start a new discussion for this project, email catchallagent@discussions.codeplex.com
You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.
Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com


Access your email online and on the go with Windows Live Hotmail. Sign up today.
Feb 24, 2009 at 10:08 AM
Edited Feb 24, 2009 at 11:02 AM
Hi Wilbert,

Thanks for your reply.  The get-transportagent returns the following:

Identity                                           Enabled         Priority
--------                                           -------         --------
Transport Rule Agent                               True            1
Journaling Agent                                   True            2
AD RMS Prelicensing Agent                          False           3
Connection Filtering Agent                         True            4
Content Filter Agent                               True            5
Sender Id Agent                                    True            6
Sender Filter Agent                                True            7
Recipient Filter Agent                             True            8
Protocol Analysis Agent                            True            9

I'll look at manually editing the file and see how I get on.

Nick
Feb 24, 2009 at 11:06 AM
Hi Wilbert,

Would you be able to confirm if the following entries are correct for me to manual enter into the config file?

agent name="CatchAll Agent"
baseType= should this be a Smtp.SmtpReceiveAgent or Routing.RoutingAgent or something else?
classFactory= should this be CatchAll.CatchAllFactory?
assemblyPath="C:\catchallagent\CatchAllAgent.dll"
enabled="true"

Thanks again,

Nick
Coordinator
Feb 25, 2009 at 5:37 AM


Hello Nick,

This would be the entry, and you should put it at the end:

<agent name="CatchAll Agent"
baseType="Microsoft.Exchange.Data.Transport.Smtp.SmtpReceiveAgent"
classFactory="CatchAll.CatchAllFactory"
assemblyPath="C:\catchallagent\CatchAllAgent.dll"
enabled="true" />

Once you have edited this, you should try to run the te-transportagent again, before starting the service. If it reports the list as below, you should be good to go.

You can always try that tracing if you want to, as descriobed in the README.txt

-Wilbert


From: [email removed]
To: [email removed]
Date: Tue, 24 Feb 2009 03:06:55 -0800
Subject: Re: Install-TransportAgent : Invalid agent configuration in file... [catchallagent:48203]

From: nicklloyd
Hi Wilbert,

Would you be able to confirm if the following entries are correct for me to manual enter into the config file?

agent name="CatchAll Agent"
baseType= should this be a Smtp.SmtpReceiveAgent or Routing.RoutingAgent or something else?
classFactory= should this be CatchAll.CatchAllFactory?
assemblyPath="C:\catchallagent\CatchAllAgent.dll"
enabled="true"

Thanks again,

Nick
Read the full discussion online.
To add a post to this discussion, reply to this email (catchallagent@discussions.codeplex.com)
To start a new discussion for this project, email catchallagent@discussions.codeplex.com
You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.
Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com


It’s the same Hotmail®. If by “same” you mean up to 70% faster. Get your account now.
Coordinator
Feb 25, 2009 at 5:41 AM
Small correction ... by running get-transportagent before you restart the service.
Feb 25, 2009 at 10:33 AM
Hi Wilbert,

Thanks again for your reply.  I have manually added the line to the agents.config, but after doing so if I run get-transportagent I get the following error:

[PS] C:\catchallagent>get-transportagent
Invalid agent configuration in file 'C:\Program Files\Microsoft\Exchange Server \TransportRoles\Shared\agents.config'.
At line:1 char:1
+ g <<<< et-transportagent

I have now reverted back to the original agents.config file and the get-transportagent produces the normal list.  I have uploaded my new agents.config file below:

http://www.eklaus.co.uk/agentsnew.rar

Thanks,

Nick


Coordinator
Mar 1, 2009 at 1:03 AM
I just posted about this issue and the solution.