Monday, February 23, 2015

The Microsoft CRM Email Router service on Local Computer started and then stopped. Some services stop automatically if they are not in use by other services or programs.

Hi,

I got all my emails pending send in crm.
then while trouble shooting, I found the Email Router Service Agent is not running.
when I started running this. it throws me the below error message...
"The Microsoft CRM Email Router service on Local Computer started and then stopped. Some services stop automatically if they are not in use by other services or programs."
if you see the event log it will be something similar to below
"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()
"
Resolution
----------------
the file Microsoft.Crm.Tools.EmailAgent.SystemState.xml might have corrupted.....
1.       Take a back-up of “Microsoft.Crm.Tools.EmailAgent.SystemState.xml” file from C:\Program Files\Microsoft CRM Email\Service location in the server Email Router is installed.
2.       Delete the file
3.       Then restart the service, see how

Regards,
Yes.Sudhanshu

3 comments:

  1. This is the information that I was looking for.. Thanks for the efforts you put to gather such a nice content and posted here.
    Informatica training | Microsoft Dynamics CRM Training

    ReplyDelete
  2. Hello :) It’s very informative post, thank you so much for showing the solution of the problem with ms dynamics crm email router service, yesterday I realized that something’s wrong and found the solution here. Thanks for help :)

    ReplyDelete
  3. I really appreciate information shared above. It’s of great help. If someone want to learn Online (Virtual) instructor lead live training in Microsoft CRM, kindly contact us http://www.maxmunus.com/contact
    MaxMunus Offer World Class Virtual Instructor led training on Microsoft CRM. We have industry expert trainer. We provide Training Material and Software Support. MaxMunus has successfully conducted 100000+ trainings in India, USA, UK, Australlia, Switzerland, Qatar, Saudi Arabia, Bangladesh, Bahrain and UAE etc.
    For Demo Contact us.
    Nitesh Kumar
    MaxMunus
    E-mail: nitesh@maxmunus.com
    Skype id: nitesh_maxmunus
    Ph:(+91) 8553912023
    http://www.maxmunus.com/



    ReplyDelete