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 translations Article translations
Article ID: 924454 - View products that this article applies to.
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.
Expand all | Collapse all

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

Properties

Article ID: 924454 - Last Review: July 17, 2007 - Revision: 2.2
APPLIES TO
  • Microsoft CRM 3.0
  • Microsoft Business Solutions CRM Software Development Kit (SDK), when used with:
    • Microsoft CRM 3.0
Keywords: 
kbfix kberrmsg kbbug kbexpertiseinter kbhotfixserver kbqfe kbmbsmigrate KB924454

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com