Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Error event when you try to start the Microsoft Dynamics CRM E-mail Router Service in Microsoft Dynamics CRM: "The E-mail Router service could not run the service main background thread"


View products that this article applies to.

Symptoms

When you try to start the Microsoft Dynamics CRM E-mail Router Service in Microsoft Dynamics CRM, the following Error event is logged in the Application log:

↑ Back to the top


Cause

This problem occurs because the Microsoft.Crm.Tools.EmailAgent.SystemState.xml file is corrupted.

↑ Back to the top


Resolution


This issue has been addressed in Dynamics CRM 4.0 Update Rollup 13. See KB http://support.microsoft.com/kb/2308072 for more information. This has also been addressed in Dynamics CRM 2011.

If you are not on Update Rollup 13, to resolve this problem, follow these steps: 
  1. Delete the Microsoft.Crm.Tools.EmailAgent.SystemState.xml file.


    Notes
    • By default, the Microsoft.Crm.Tools.EmailAgent.SystemState.xml file is in the following folder:
      C:\Program Files\Microsoft CRM Email\Service
    • By default, the Service folder is a hidden folder. To see this folder, you must change the Windows Explorer settings to display hidden files and hidden folders.
  2. Restart the Microsoft Dynamics CRM E-mail Router Service.

    The Microsoft.Crm.Tools.EmailAgent.SystemState.xml file is re-created.

If Microsoft Dynamics CRM users are set to use the Email Router, and not a Forward Mailbox, for incoming email, there is a possibility of deleted emails returning to Microsoft Dynamics CRM after implementing this resolution. If an email has not been deleted from the user's mailbox, the Email Router could find a user's email in their Inbox, not find it in Microsoft Dynamics CRM, and create the email in Microsoft Dynamics CRM again. To avoid this, the email should also be deleted from the user's mailbox along with Microsoft Dynamics CRM.

To avoid this situation, regularly take a backup of the following files and store them on the desktop of the same server.

  • Microsoft.Crm.Tools.EmailAgent.Configuration.bin
  • Microsoft.Crm.Tools.EmailAgent.SystemState.Xml


If the Microsoft Dynamics CRM Email Router Configuration Manager fails at launch or the Microsoft Dynamics CRM Email Router service fails to start, replace the above 2 files in C:\Program Files\Microsoft CRM Email\Service. Restart the Microsoft Dynamics CRM Email Router service and then launch the Microsoft Dynamics CRM Email Router Configuration Manager. If the back up of these files is latest, then it will have the complete configuration of the Email Router.

↑ Back to the top


References

2012555 Error Email configuration manager was not able to read configuration information occurs when you launch the Microsoft Dynamics CRM Email Router Configuration Manager

↑ Back to the top


Keywords: kbmbsemail, kberrmsg, kbtshoot, kbmbsmigrate, kbbug, kbexpertiseinter, kbmbspartner, kbsurveynew, kb

↑ Back to the top

Article Info
Article ID : 954522
Revision : 1
Created on : 1/7/2017
Published on : 9/12/2011
Exists online : False
Views : 332