locked
CRM WEB SERVICES: Post size exceeded allowed limits - Maximum request length exceeded RRS feed

  • Question

  •  

    Hi,

     

    On our CRM Server event log we have noticed a recurring ASP.NET warning with event message "Post size exceeded allowed limits" caused by the HttpException "Maximum request length exceeded". The request is to the 2007 CRM Web Services. The warning is appearing at regular intervals of about a minute or so. It happens even when there is no one using the CRM and also when the CRM Async service is not running.

     

    After doing some research I've realised that the request length can be increased by increasing the value of 'maxRequestLength' in the CRM web.config file. However its already at 8192 ie. 8Mb.

     

    Basically I want to know what is causing this message to appear so regularly. What is posting a request more than 8Mb to the server?.. Has anyone else seen this before? .. I'd rather know why before I increase the maxRequestLength.

     

    Also, what is the recommended value of 'maxRequestLength'  for CRM?...  Any help would be greatly appreciated!

     

    Thanks!

     

    Here is the event log entry: Ive used '#######' to block out server specific info..

    ---------------------------------------------------------------------------------------------------------

     

    Event code: 3004

    Event message: Post size exceeded allowed limits.

    Event time: 11/28/2008 9:40:09 AM

    Event time (UTC): 11/28/2008 9:40:09 AM

    Event ID: 38326f6294a14ae8b2818172c32e95f9

    Event sequence: 82908

    Event occurrence: 2994

    Event detail code: 0

    Application information:

    Application domain: /LM/W3SVC/2/Root-1-128722839150338643

    Trust level: Full

    Application Virtual Path: /

    Application Path: E:\Microsoft CRM\CRMWeb\

    Machine name: #######

    Process information:

    Process ID: 9072

    Process name: w3wp.exe

    Account name: NT AUTHORITY\NETWORK SERVICE

    Exception information:

    Exception type: HttpException

    Exception message: Maximum request length exceeded.

    Request information:

    Request URL: http://#######/MSCrmServices/2007/CrmService.asmx

    Request path: /MSCrmServices/2007/CrmService.asmx

    User host address: #######

    User: VISABUREAU\CRMAdmin

    Is authenticated: True

    Authentication Type: Negotiate

    Thread account name: NT AUTHORITY\NETWORK SERVICE

    Thread information:

    Thread ID: 1

    Thread account name: NT AUTHORITY\NETWORK SERVICE

    Is impersonating: True

    Stack trace: at System.Web.HttpRequest.GetEntireRawContent()

    at System.Web.HttpRequest.get_InputStream()

    at Microsoft.Crm.WebServices.Crm2007.MultipleOrganizationSoapHeaderAuthenticationProvider.CreateAuthenticationToken(HttpApplication application)

    at Microsoft.Crm.WebServices.SoapHeaderAuthenticationProviderBase.Authenticate(HttpApplication application)

    at Microsoft.Crm.Authentication.AuthenticationStep.Authenticate(HttpApplication application)

    at Microsoft.Crm.Authentication.AuthenticationPipeline.Authenticate(HttpApplication application)

    at Microsoft.Crm.Authentication.AuthenticationEngine.Execute(Object sender, EventArgs e)

    at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

    Custom event details:

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

     

    Friday, November 28, 2008 10:05 AM

Answers

  • This is most likely from the Email router trying to track an email with a large attachment. CRM has a registry setting (maxuploadfilesize) that would normally prevent uploading attachments that are too large, but if this has been increased then you need to increase maxRequestLength. Note that, due to the way attachements are encoded when stored in CRM that the web request length is larger than the file size. For example a 10 MB file might need a request of 12 MB to upload it. For safety I typically set the maxRequestLength to be double the maximum file size

    Friday, November 28, 2008 11:43 AM
    Moderator

All replies

  • This is most likely from the Email router trying to track an email with a large attachment. CRM has a registry setting (maxuploadfilesize) that would normally prevent uploading attachments that are too large, but if this has been increased then you need to increase maxRequestLength. Note that, due to the way attachements are encoded when stored in CRM that the web request length is larger than the file size. For example a 10 MB file might need a request of 12 MB to upload it. For safety I typically set the maxRequestLength to be double the maximum file size

    Friday, November 28, 2008 11:43 AM
    Moderator
  • Thank You!

     

    Thats was indeed what was happening.

     

    Appreciate the help!

     

    Tuesday, December 2, 2008 10:52 AM