More About This Website

All information is provided "AS IS" with no warranties, and confers no rights

Login
Powered by Squarespace
« Unsupported XML Core Services Version | Main | CRM SDK 4.0.2 update released »
Saturday
Feb092008

The E-mail Router service could not run

Not sure why but had the e-mail router decide it needed a vacation.  The message isn't clear where the state XML file is located but neither the service or the configuration tool would start,

After doing the Repair, rebooting the server I was still stuck at no luck.  I finally then decided to uninstall and re-install the email router.  Even after that the error still occurred.  It wasn't till I finally deleted the e-mail router folder in Program Files that I was able to re-install and have things run.

Of course the configuration was empty after the delete of the folder and re-install - the config on this server was simple so it wasn't really a big deal to re-configure.  I did take a few minutes after I set it back up to find where the config is stored in case this happens again.  First, the configuration file can be found by default at C:\Program Files\Microsoft CRM Email\Service\Microsoft.Crm.Tools.EmailAgent.xml

The state file referenced in the error below is also located in the service folder.  Possibly if I looked at that folder before I might have been able to make it happy. 

I have now backed up both of these files to save a copy so I hopefully wouldn't have to start from scratch if this happens again.

I think it would be great for the e-mail router to have an real support for Export Configuration and Import Configuration

 

#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.

EmailEmail Article to Friend

References (8)

References allow you to track sources for this article, as well as articles that were written in response to this article.
  • Response
    Response: Blog
    Blog
  • Response
    Response: router
    router can help you.
  • Response
    Response: Router
    The next layer is to prevent viruses from even entering your network. This can be done with a firewall solution that offers a complete Unified Threat Management system. Firewall solutions that offer UTM provide the small business network with a gateway antivirus solution, which stops viruses at the Internet router. These ...
  • Response
    This webinar replay even has more than a little excitement in it. At about 50 minutes, we lost the voice phone bridge. You can either skip forward about three minutes, at which time we restored the audio or you can enjoy the drama in my voice as I switch first to ...
  • Response
    CRM Wars»
  • Response
    Response: kfmlbbdt
    kfmlbbdt
  • Response
    Response: bsizorjq
    bsizorjq
  • Response
    [...]- MrDave's (David Yack) CRM Blog! - The E-mail Router service could not run[...]

Reader Comments (4)

Just confirming that this exact issue happened in my environment -- backing up the file structure, uninstalling, removing the folder from Program Files and then reinstalling DOES fix the issue - everything else failed. However, simply copying back in your XML files does not add the customized setting back to your deployment. And yet -- it is all still working like it did before...

Oh how I love CRM and it's support...
March 27, 2008 | Unregistered CommenterKEH
I had exact issue as described above. Delete file C:\Program Files\Microsoft CRM Email\Service\Microsoft.Crm.Tools.EmailAgent.xml

then run rebuild. I did not uninstall. Prior to deleting, I opened file in notepad and it was blank. If you don't delete if first, repair won't replace it.
May 16, 2008 | Unregistered CommenterGary T
just delete the file, it then re-creates it
May 21, 2008 | Unregistered CommenterHunter
Had the some issue. Renamed Microsoft.Crm.Tools.EmailAgent.SystemState.xml and restarted the Microsoft CRM Email Router service from services.mmc. That worked for me.
August 17, 2008 | Unregistered CommenterBjørn

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
All HTML will be escaped. Hyperlinks will be created for URLs automatically.