Microsoft KB Archive/924454

From BetaArchive Wiki
Knowledge Base


Error message when you run a solution that sets the state of a request or of a response for an entity in Microsoft Dynamics CRM 3.0: "This method can only be called in the context of web service request"

Article ID: 924454

Article Last Modified on 7/17/2007



APPLIES TO

  • Microsoft Dynamics CRM 3.0
  • Microsoft CRM Software Development Kit, when used with:
    • Microsoft Dynamics CRM 3.0



The hotfix that is discussed in this article is not available for the Chinese version of Microsoft Dynamics CRM or for the Japanese version of Microsoft Dynamics CRM.

SYMPTOMS

When you run a solution that sets the state of a request or of a response for an entity in Microsoft Dynamics CRM 3.0, you receive the following error message:

This method can only be called in the context of web service request.
ErrorCode: -2147220970

If you have the DevErrors parameter enabled, the following error message is logged in the Web.config file:

Error code: 0x80040216 Description: An unexpected error occurred.
Platform:
Details: This method can only be called in the context of web service request.
at Microsoft.Crm.CrmTrace.Assert(Boolean condition, String message)
at Microsoft.Crm.BusinessEntities.SerializationState.ValidateInWebService()
at Microsoft.Crm.BusinessEntities.SerializationState.OnEndWebRequest()
at Microsoft.Crm.WebServices.CrmSoapExtension.ProcessMessage(SoapMessage message)
at System.Web.Services.Protocols.SoapMessage.RunExtensions(SoapExtension[] extensions)
at System.Web.Services.Protocols.SoapServerProtocol.WriteReturns(Object[] returnValues, Stream outputStream)
at System.Web.Services.Protocols.WebServiceHandler.WriteReturns(Object[] returnValues)
at System.Web.Services.Protocols.WebServiceHandler.Invoke()

CAUSE

This problem may occur after you install hotfix 915791. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

915791 An appointment time may change when you synchronize Outlook with Microsoft Dynamics CRM 3.0


RESOLUTION

This problem is fixed in Microsoft Dynamics CRM 3.0 Update Rollup 2. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

927751 Update Rollup 2 is available for Microsoft Dynamics CRM 3.0


MORE INFORMATION

For more information about the terminology that is used to describe Microsoft software updates, click the following article numbers to view the articles in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates


887283 Microsoft Business Solutions CRM software hotfix and update package naming standards



Additional query words: crm3 crm30 crm3.0

Keywords: kbfix kberrmsg kbbug kbexpertiseinter kbhotfixserver kbqfe kbmbsmigrate kbpubtypekc KB924454