Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

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"


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.

↑ Back to the top


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()

↑ Back to the top


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

↑ Back to the top


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

↑ Back to the top


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

↑ Back to the top


Keywords: KB924454, kbmbsmigrate, kbqfe, kbhotfixserver, kbexpertiseinter, kbbug, kberrmsg, kbfix

↑ Back to the top

Article Info
Article ID : 924454
Revision : 4
Created on : 7/17/2007
Published on : 7/17/2007
Exists online : False
Views : 369