Resources for IT Professionals > Dynamics Forums > Microsoft Dynamics CRM > MSCRMAsyncService is stopping automatically .........im starting the service but after some time again the service was stopping automatically
Ask a questionAsk a question
 

QuestionMSCRMAsyncService is stopping automatically .........im starting the service but after some time again the service was stopping automatically

  • Thursday, November 05, 2009 7:30 AMdeepsMS Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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 up
    http://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

  • Thursday, November 05, 2009 7:47 AMMichael SulzMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi Deepa,

    which RU you have installed on the server?

    Please check in the table MSCRM_config the following values in the table DeploymentProperties
     

    SELECT ColumnName, NVarCHarColumn FROM DeploymentProperties

    WHERE ColumnName in ('AsyncSdkRootDomain', 'ADWebApplicationRootDomain', 'ADSdkRootDomain')

    All three values have to be the same. If not, update the fields, restart the async service and test again.


    Viele Grüße

    Michael Sulz
    axcentro GmbH
    MVP für Microsoft Dynamics CRM
  • Thursday, November 05, 2009 8:56 AMdeepsMS Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

     NVarCHarColumn is empty for ColumnName in 'ADSdkRootDomain'. Updated the correct one.

    but no luck!!!!
    still im getting the same error message and service is getting stopped automatically

  • Thursday, November 05, 2009 9:06 AMMichael SulzMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Then i ask again, which RU you have installed?
    Viele Grüße

    Michael Sulz
    axcentro GmbH
    MVP für Microsoft Dynamics CRM
  • Thursday, November 05, 2009 9:13 AMdeepsMS Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Actually im not aware about this...since I was working on CRM 4.0 (some one installed this before)
    please let me know where can we see the latest RU installed
  • Thursday, November 05, 2009 10:13 AMMichael SulzMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi,

    see here. I know, it is in German, but the site is so easy, I think, you can understand it.

    Viele Grüße

    Michael Sulz
    axcentro GmbH
    MVP für Microsoft Dynamics CRM
  • Thursday, November 05, 2009 10:25 AMdeepsMS Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    thanks a lot
    crm4.0 is of update rollup 2 (KB959419-V2)

  • Thursday, November 05, 2009 10:47 AMMichael SulzMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    than you should update to ru7. There are a lot of fixes in the update.
    Viele Grüße

    Michael Sulz
    axcentro GmbH
    MVP für Microsoft Dynamics CRM