Reehaz Soobhany
2009-01-29 12:43:08 UTC
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
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