Had an issue today. We installed Mcafee Security for Exchange (which I will from here on out just call mcafee since it’s hard to type out).

The install went mostly well on the servers, however we noticed that the Exchange transport service didn’t start back up after the install on one of the servers. When starting the transport service and trying to use the queue view we got an error. Additionally the following errors appeared in the event log.

Log Name:      Application
Source:        MSExchange Extensibility
Date:          1/17/2013 4:19:11 PM
Event ID:      1052
Task Category: MExRuntime
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      Exchserver
Description:
Failed to create agent factory for the agent 'McAfeeTxAgent' with error 'Failed to create type 'McAfee.E12Agents.McTxAgent.McAfeeTxAgentFactory' from assembly 'C:\Program Files (x86)\McAfee\MSME\bin\E2007 Agents\McTxAgentX64.dll' due to error 'Invalid agent assembly path.'.'. Please verify the corresponding transport agent assembly and dependencies with correct version are installed.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="MSExchange Extensibility" />
    <EventID Qualifiers="49156">1052</EventID>
    <Level>2</Level>
    <Task>1</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2013-01-17T22:19:11.000000000Z" />
    <EventRecordID>788098</EventRecordID>
    <Channel>Application</Channel>
    <Computer>Exchserver</Computer>
    <Security />
  </System>
  <EventData>
    <Data>McAfeeTxAgent</Data>
    <Data>Failed to create type 'McAfee.E12Agents.McTxAgent.McAfeeTxAgentFactory' from assembly 'C:\Program Files (x86)\McAfee\MSME\bin\E2007 Agents\McTxAgentX64.dll' due to error 'Invalid agent assembly path.'.</Data>
  </EventData>
</Event>


Log Name:      Application
Source:        MSExchangeTransport
Date:          1/17/2013 4:19:11 PM
Event ID:      16023
Task Category: Configuration
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      Exchserver
Description:
Microsoft Exchange couldn't start transport agents. The Microsoft Exchange Transport service will be stopped. Exception details: Failed to create type 'McAfee.E12Agents.McTxAgent.McAfeeTxAgentFactory' from assembly 'C:\Program Files (x86)\McAfee\MSME\bin\E2007 Agents\McTxAgentX64.dll' due to error 'Invalid agent assembly path.'. : Microsoft.Exchange.Data.ExchangeConfigurationException: Failed to create type 'McAfee.E12Agents.McTxAgent.McAfeeTxAgentFactory' from assembly 'C:\Program Files (x86)\McAfee\MSME\bin\E2007 Agents\McTxAgentX64.dll' due to error 'Invalid agent assembly path.'. ---> System.ArgumentException: Invalid agent assembly path.
   --- End of inner exception stack trace ---
   at Microsoft.Exchange.Data.Transport.Internal.MExRuntime.FactoryTable.CreateAgentFactory(AgentInfo agentInfo)
   at Microsoft.Exchange.Data.Transport.Internal.MExRuntime.FactoryTable..ctor(IEnumerable agents)
   at Microsoft.Exchange.Data.Transport.Internal.MExRuntime.RuntimeSettings..ctor(MExConfiguration config, String agentGroup)
   at Microsoft.Exchange.Data.Transport.Internal.MExRuntime.MExRuntime.Initialize(String configFile, String agentGroup, Boolean isBridgeHead, String installPath)
   at Microsoft.Exchange.Transport.Extensibility.AgentComponent.Load()
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="MSExchangeTransport" />
    <EventID Qualifiers="49156">16023</EventID>
    <Level>2</Level>
    <Task>16</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2013-01-17T22:19:11.000000000Z" />
    <EventRecordID>788099</EventRecordID>
    <Channel>Application</Channel>
    <Computer>Exchserver</Computer>
    <Security />
  </System>
  <EventData>
    <Data>Failed to create type 'McAfee.E12Agents.McTxAgent.McAfeeTxAgentFactory' from assembly 'C:\Program Files (x86)\McAfee\MSME\bin\E2007 Agents\McTxAgentX64.dll' due to error 'Invalid agent assembly path.'.</Data>
    <Data>Microsoft.Exchange.Data.ExchangeConfigurationException: Failed to create type 'McAfee.E12Agents.McTxAgent.McAfeeTxAgentFactory' from assembly 'C:\Program Files (x86)\McAfee\MSME\bin\E2007 Agents\McTxAgentX64.dll' due to error 'Invalid agent assembly path.'. ---> System.ArgumentException: Invalid agent assembly path.
   --- End of inner exception stack trace ---
   at Microsoft.Exchange.Data.Transport.Internal.MExRuntime.FactoryTable.CreateAgentFactory(AgentInfo agentInfo)
   at Microsoft.Exchange.Data.Transport.Internal.MExRuntime.FactoryTable..ctor(IEnumerable agents)
   at Microsoft.Exchange.Data.Transport.Internal.MExRuntime.RuntimeSettings..ctor(MExConfiguration config, String agentGroup)
   at Microsoft.Exchange.Data.Transport.Internal.MExRuntime.MExRuntime.Initialize(String configFile, String agentGroup, Boolean isBridgeHead, String installPath)
   at Microsoft.Exchange.Transport.Extensibility.AgentComponent.Load()</Data>
  </EventData>
</Event>

Transport agents you say? I ran Get-TransportAgent and got the following.

[PS] C:\Windows\system32>Get-TransportAgent

Identity                                           Enabled         Priority
--------                                           -------         --------
Transport Rule Agent                               True            1
Text Messaging Routing Agent                       True            2
Text Messaging Delivery Agent                      True            3
McAfeeTxRoutingAgent                               False           4
McAfeeTxAgent                                      False           5

I figured what the heck, it doesn’t work. So I tried disabling the mcafee agents for the time being.

Disable-TransportAgent McAfeeTxRoutingAgent
Disable-TransportAgent McAfeeTxAgent

After disabling the mcafee agents I restarted the Exchange transport service and was able to successfully connect to to the queue.

While this doesn’t fix the mcafee issue, it does at least get mail flowing again until the mcafee issue can be addressed. My guess is it will require a complete removal and reinstall of mcafee.