E-mail Router Service Stopped and Won’t Start

Written by admin. Posted in CRM TUTORIAL, EMAIL ROUTER IN CRM

Tagged: , , , , , ,

Published on October 05, 2013 with No Comments

This morning when I logged into the CRM server, I noticed that e-mails were not processing as expected.  The first thing I checked was the E-mail Router Service in Services and saw that it was not running.  I selected start and the service attempted to start but stopped immediately with a message to the effect of …. some services are not needed and will run as needed.  Knowing that the e-mail router needs to run in order to process e-mails, I checked the application log in the event viewer to see if there were any errors.  I found the error below.
I ran a search on the error and found KB 954522 article which addresses the issue.  The solution is fairly simply which is to delete the “Microsoft.Crm.Tools.EmailAgent.SystemState.xml file” that is generally located in C:Program FilesMicrosoft CRM EmailService.  I created a copy of the file for backup just in case things didn’t work the way I expected and then deleted the file from the directory.  The e-mail router service started again as expected and life was good.
Event Type: Error
Event Source: MSCRMEmail
Event Category: None
Event ID: 0
Date:  7/16/2009
Time:  8:37:52 AM
User:  N/A
Computer: CRM
Description:
#16192 – The E-mail Router service could not run the service main background thread. The E-mail Router service cannot continue and will now shut down. System.Configuration.ConfigurationErrorsException: The E-mail router service cannot access system state file Microsoft.Crm.Tools.EmailAgent.SystemState.xml. The file may be missing or may not be accessible. The E-mail Router service cannot continue and will now shut down. —> System.Xml.XmlException: Root element is missing.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.Load(String filename)
at Microsoft.Crm.Tools.Email.Providers.ConfigFileReader..ctor(String filePath, ServiceLogger serviceLogger)
at Microsoft.Crm.Tools.Email.Providers.SystemState.Initialize(ServiceLogger serviceLogger)
at Microsoft.Crm.Tools.Email.Providers.SystemState..ctor(ServiceLogger serviceLogger)
at Microsoft.Crm.Tools.Email.Agent.ServiceCore.InitializeSystemConfiguration()
— End of inner exception stack trace —
at Microsoft.Crm.Tools.Email.Agent.ServiceCore.InitializeSystemConfiguration()
at Microsoft.Crm.Tools.Email.Agent.ServiceCore.ExecuteService()
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

 

No Comments

Comments for E-mail Router Service Stopped and Won’t Start are now closed.