exchange 2007 antispam agent made transport service won't start

I tried to install antispam feature over the exchange 2007 server. After that the Exchange Transport Service won't start.  I got event id 16023 with below details. If I uninstall this antispam, the transport service starts O.K. Any sussgestion?

Microsoft Exchange couldn't start transport agents. The Microsoft Exchange Transport service will be stopped. Exception details: Failed to create type 'Microsoft.Exchange.Transport.Agent.ContentFilter.ContentFilterAgentFactory' from assembly 'C:\Program Files\Microsoft\Exchange Server\TransportRoles\agents\Hygiene\Microsoft.Exchange.Transport.Agent.Hygiene.dll' due to error 'Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))'. : Microsoft.Exchange.Data.ExchangeConfigurationException: Failed to create type 'Microsoft.Exchange.Transport.Agent.ContentFilter.ContentFilterAgentFactory' from assembly 'C:\Program Files\Microsoft\Exchange Server\TransportRoles\agents\Hygiene\Microsoft.Exchange.Transport.Agent.Hygiene.dll' due to error 'Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))'. ---> Microsoft.Exchange.Data.ExchangeConfigurationException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) ---> System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
   at Microsoft.Exchange.Data.Transport.Interop.UnsafeNativeMethods.CoCreateInstance(Guid rclsid, Object pUnkOuter, UInt32 dwClsContext, Guid riid)
   at Microsoft.Exchange.Data.Transport.Interop.ComProxy.CreateComObject(Guid guidClass)
   at Microsoft.Exchange.Data.Transport.Interop.ComProxy..ctor(Guid guidClass)
   at Microsoft.Exchange.Transport.Agent.ContentFilter.ContentFilterAgentFactory.InitializeFilter()
   --- End of inner exception stack trace ---
   at Microsoft.Exchange.Transport.Agent.ContentFilter.ContentFilterAgentFactory.InitializeFilter()
   at Microsoft.Exchange.Transport.Agent.ContentFilter.ContentFilterAgentFactory.Configure(Boolean onStartup)
   at Microsoft.Exchange.Transport.Agent.ContentFilter.ContentFilterAgentFactory..ctor()
   --- 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)
   at Microsoft.Exchange.Protocols.Smtp.MExEvents.Initialize(String configFilePath)
   at Microsoft.Exchange.Transport.Components.SmtpMExRuntimeLoader.Load()
larose10Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

 
larose10Author Commented:
I checked event viewer again and I found this error comes first. Event ID 303 and details are as below. I checked directory Hygiene's folder security and it has NETWORK SERVICE account with read permission.

Microsoft Exchange was unable to initialize the Content Filter agent. Check the access control lists (ACLs) on the files under 'C:\Program Files\Microsoft\Exchange Server\TransportRoles\agents\Hygiene' and make sure the Microsoft Exchange Transport service can access them. Details: System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
   at Microsoft.Exchange.Data.Transport.Interop.UnsafeNativeMethods.CoCreateInstance(Guid rclsid, Object pUnkOuter, UInt32 dwClsContext, Guid riid)
   at Microsoft.Exchange.Data.Transport.Interop.ComProxy.CreateComObject(Guid guidClass)
   at Microsoft.Exchange.Data.Transport.Interop.ComProxy..ctor(Guid guidClass)
   at Microsoft.Exchange.Transport.Agent.ContentFilter.ContentFilterAgentFactory.InitializeFilter()
0
 
SurajCommented:
Uninstalled the Content filter agent and reinstalled it usuing the command:--
****************************************************************************************
Install-TransportAgent -Name "Content Filter Agent" -TransportAgentFactory
"Microsoft.Exchange.Transport.Agent.ContentFilter.ContentFilterAgentFactory"
-AssemblyPath "C:\Program Files\Microsoft\Exchange
Server\TransportRoles\agents\Hygiene\Microsoft.Exchange.Transport.Agent.Hygiene.dll"

-x-sam-
0
 
SurajCommented:


before trying the above stem check this :

- Launch Windows Explore -Navigate to the "..Exchange Server\TransportRoles" folder -Verify that "NETWORK SERVICE" has full control on the "TransportRoles" folder, and all subfolders/files - Start the Transport service
0

Experts Exchange Solution brought to you by ConnectWise

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.