Resources for IT Professionals >
Dynamics Forums
>
CRM Development
>
MSCRMAsyncService is stopping automatically .........im starting the service but after some time again the service was stopping automatically
MSCRMAsyncService is stopping automatically .........im starting the service but after some time again the service was stopping automatically
- Hi all
MSCRMAsyncService is stopping automatically .........im starting the service but after some time again the service was stopping automatically .
I checked the event and got the following error message
Host ComputerName: failed while monitoring asynchronous operations queue. Exception: System.InvalidOperationException: There is an error in XML document (1, 759980). ---> System.Xml.XmlException: '', hexadecimal value 0x19, is an invalid character. Line 1, position 759980.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ThrowInvalidChar(Int32 pos, Char invChar)
at System.Xml.XmlTextReaderImpl.ParseNumericCharRefInline(Int32 startPos, Boolean expand, BufferBuilder internalSubsetBuilder, Int32& charCount, EntityType& entityType)
at System.Xml.XmlTextReaderImpl.ParseNumericCharRef(Boolean expand, BufferBuilder internalSubsetBuilder, EntityType& entityType)
at System.Xml.XmlTextReaderImpl.HandleEntityReference(Boolean isInAttributeValue, EntityExpandType expandType, Int32& charRefEndPos)
at System.Xml.XmlTextReaderImpl.ParseAttributeValueSlow(Int32 curPos, Char quoteChar, NodeData attr)
at System.Xml.XmlTextReaderImpl.ParseAttributes()
at System.Xml.XmlTextReaderImpl.ParseElement()
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at System.Xml.XmlReader.ReadStartElement()
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderCrmService.Read20_LookupProperty(Boolean isNullable, Boolean checkType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderCrmService.Read36_Property(Boolean isNullable, Boolean checkType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderCrmService.Read14_DynamicEntity(Boolean isNullable, Boolean checkType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderCrmService.Read13_BusinessEntity(Boolean isNullable, Boolean checkType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderCrmService.Read57_BusinessEntityCollection(Boolean isNullable, Boolean checkType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderCrmService.Read1380_GetUnprocessedRecordsResponse(Boolean isNullable, Boolean checkType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderCrmService.Read1486_Response(Boolean isNullable, Boolean checkType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderCrmService.Read1506_ExecuteResponse()
at Microsoft.Xml.Serialization.GeneratedAssembly.ArrayOfObjectSerializer18.Deserialize(XmlSerializationReader reader)
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle)
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at Microsoft.Crm.SdkTypeProxy.CrmService.Execute(Request Request)
at Microsoft.Crm.Asynchronous.SdkTypeProxyCrmServiceWrapper.Execute(Object request)
at Microsoft.Crm.Asynchronous.PublishDuplicateRuleOperation.GetUnpublishedRecords(String entityName, String[] colSet, Guid ruleId, Int32 maxRecords, String[]& versionNumbers, ICrmService crmService)
at Microsoft.Crm.Asynchronous.PublishDuplicateRuleOperation.PublishWithPaging(ShareableDuplicateRule rule, Boolean isMainEntity, AsyncEvent asyncEvent, DuplicateRuleDataAccess data, ICrmService crmService, IConfiguration configuration)
at Microsoft.Crm.Asynchronous.PersistMatchCodeOperation.InternalExecute(AsyncEvent asyncEvent)
at Microsoft.Crm.Asynchronous.AsyncOperationCommand.Execute(AsyncEvent asyncEvent)
at Microsoft.Crm.Asynchronous.QueueManager.PoolHandler.ProcessAsyncEvent(AsyncEvent asyncEvent)
at Microsoft.Crm.Asynchronous.QueueManager.PoolHandler.InvokeHandlerInPool(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)
I checked in the forum http://social.microsoft.com/Forums/en-US/crmdevelopment/thread/79243fec-bff2-4cba-9a1b-d55e9ac9aca8 ...in that they mentioned to follow uphttp://support.microsoft.com/default.aspx/kb/949844 but i dont think this resolves my issue because eeror message mentioned is different.
Please help me in resolving the issue
Thanks
Deepa
All Replies
- Hi,
Are you doing some specific operations when the async srvice was stopping.
Thank You
Raghu Try following the instructions here: http://blog.powerobjects.com/2008/02/08/crm-40-the-microsoft-crm-asynchronous-processing-service-service-terminated-unexpectedly/
Dave Berry- Based on the error, and some of the descriptions found elsewhere about abrupt AsyncService stops, I wonder if perhaps you inadvertently copied and pasted the character into a rule, or field, on one of your workflows. A quick lookup here http://web.cs.mun.ca/~michael/c/ascii-table.html suggests that it's an emphasis control character; while a lookup here: http://www.fileformat.info/info/unicode/char/0019/index.htm suggests that it's an END OF MEDIUM code.
In any case, the steps on the site I linked previously should help you identify if a specific System Job is causing the crash. Find that job, and report back here. If it's a Workflow--as I suspect it is--try unpublishing it to see if that resolves the issue.
Dave Berry - Do you have asp.net 3.0 sp1 ? - http://support.microsoft.com/kb/952755
My Dynamics CRM Blog: http://bovoweb.blogspot.com- Proposed As Answer bykgorczewski Friday, November 06, 2009 11:43 PM

