Discussion:
Email Router Crashing
(too old to reply)
Reehaz Soobhany
2009-01-29 12:43:08 UTC
Permalink
Hello,

I am having an issue with email router. When the service is started, it is
then stopped immediately with the error message:

The CRM Email Router on Local Computer started then stopped. Some service
stop automatically if they have no work etc etc

In the event viewer we get the following error Message:

#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: Unexpected end of file has
occurred. The following elements are not closed: LastError,
HZHoHxk9LvQMdG9BeFpYulegB6AI, State. Line 357, position 332.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.Throw(Int32 pos, String res, String arg)
at System.Xml.XmlTextReaderImpl.ThrowUnclosedElements()
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
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.

I am running MS CRM 4.0 rollup update 1. Note it was working just fine, then
a day or so ago, users were complaining that they were not receiving mails
on queues, then that i realized that the email router service was not
running. Tried everything did not work.

I installed the rollup update 2 (only for the email router) and still the
same situation.

System running on Windows 2003 SP2, Exchanger Server 2003.

Note : This is a dedicated server and as far I am concerned, no one could
have touched any configuration with the email router. So what could this be?

Regards
Andy
2009-01-30 21:25:27 UTC
Permalink
This post might be inappropriate. Click to display it.
Reehaz Soobhany
2009-02-10 12:43:39 UTC
Permalink
Andy,

Thanks for your reply, I figured out the issue.

There is a KB that describes this issue
(http://support.microsoft.com/kb/954522). This problem occurs because the
Microsoft.Crm.Tools.EmailAgent.SystemState.xml file is corrupted. Please
follow the steps below to resolve this issue:

1. Delete the Microsoft.Crm.Tools.EmailAgent.SystemState.xml file.
- Note: 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.

Regards
Post by Andy
My guess somebody changed the security configuration on your SMTP/
POP3/ or MS Exchange Server. If your email is being hosted on another
computer than CRM and the CRM Email router are running on, there are
many configuration files on the email system that control handoffs of
email from other systems. See if your server email administrator has
done anything lately to change the email server configuration or the
gateways in between servers.
Freaky Tah
2010-10-28 08:02:02 UTC
Permalink
Thanks alot mate this worked for me.
renamed Microsoft.Crm.Tools.EmailAgent.SystemState.xml (how i hate deleting stuff). I then restarted email router service.......and Voilaaaaaaaaa!! it worked.
Post by Reehaz Soobhany
Hello,
I am having an issue with email router. When the service is started, it is
The CRM Email Router on Local Computer started then stopped. Some service
stop automatically if they have no work etc etc
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: Unexpected end of file has
occurred. The following elements are not closed: LastError,
HZHoHxk9LvQMdG9BeFpYulegB6AI, State. Line 357, position 332.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.Throw(Int32 pos, String res, String arg)
at System.Xml.XmlTextReaderImpl.ThrowUnclosedElements()
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
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.
I am running MS CRM 4.0 rollup update 1. Note it was working just fine, then
a day or so ago, users were complaining that they were not receiving mails
on queues, then that i realized that the email router service was not
running. Tried everything did not work.
I installed the rollup update 2 (only for the email router) and still the
same situation.
System running on Windows 2003 SP2, Exchanger Server 2003.
Note : This is a dedicated server and as far I am concerned, no one could
have touched any configuration with the email router. So what could this be?
Regards
Post by Andy
My guess somebody changed the security configuration on your SMTP/
POP3/ or MS Exchange Server. If your email is being hosted on another
computer than CRM and the CRM Email router are running on, there are
many configuration files on the email system that control handoffs of
email from other systems. See if your server email administrator has
done anything lately to change the email server configuration or the
gateways in between servers.
Post by Reehaz Soobhany
Andy,
Thanks for your reply, I figured out the issue.
There is a KB that describes this issue
(http://support.microsoft.com/kb/954522). This problem occurs because the
Microsoft.Crm.Tools.EmailAgent.SystemState.xml file is corrupted. Please
1. Delete the Microsoft.Crm.Tools.EmailAgent.SystemState.xml file.
- Note: 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.
Regards
Submitted via EggHeadCafe - Software Developer Portal of Choice
SharePoint Lists In Excel Via VSTO
http://www.eggheadcafe.com/tutorials/aspnet/b56c03b3-35ea-43c5-8b87-2f0be518377c/sharepoint-lists-in-excel-via-vsto.aspx
Loading...