Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
Dmitry.Obukhov  
#1 Posted : Monday, January 9, 2012 1:29:21 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Administration
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Symptomps:

You can upload limited number of files (about 45) per a single POST request. If you upload more than 45 files, the uploading process will stop and you will get the error. Java Console shows this dump:

Code:

[InvalidOperationException]: Operation is not valid due to the current state of the object.
at System.Web.HttpRequest.FillInFormCollection()
at System.Web.HttpRequest.get_Form()
at System.Web.HttpRequest.get_HasForm()
at System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull)
at System.Web.UI.Page.DeterminePostBackMode()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
[HttpUnhandledException]: Exception of type 'System.Web.HttpUnhandledException' was thrown.
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.myaccount_addphoto_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\microsoft.net\Framework64\v2.0.50727\Temporary ASP.NET Files\root\7ddb551a\66c2b18\App_Web_qcarljui.6.cs:line 0
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Reasons:

You installed the Windows Update recently: Microsoft Security Bulletin MS11-100.

The bulletin fixes the DOS attack vector by providing a limit to the number of variables that can be submitted for a single HTTP POST request. The default limit is 500.

Resolution:

This problem can be resolved in two ways:

  1. Reconfiguring Image Uploader and server-side script to send all files in upload list into multiple packages (FilesPerPackage property should be set to some small value (e.g. 1-10))*.

  2. Modifying applicationHost.config file. Go to C:\Windows\System32\inetsrv\config\applicationHost.config and add the following section to the config file, like it is shown in this code:

    Code:
    
    <appSettings>
        <add key="aspnet:MaxHttpCollectionKeys" value="10000" />
    </appSettings>
    

    It will allow increasing the number of variables that can be sent in a single HTTP POST request.

    ________

    * - The second way still has limitation. If you send all files in a single request, number of variables posted in a request depends on number of files. This way, increasing the value in config will give a temporary solution. Anyway it can be found amount of files causing this exception again. To eliminate even a chance of this problem you need to consider the first way.

Edited by moderator Thursday, June 20, 2013 9:20:13 PM(UTC)  | Reason: Not specified

Best regards,

Dmitry Obukhov

Technical Support. Aurigma, Inc.

Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.