[ASP. NET] System. InvalidOperationException: the current state of the object invalidates this operation. [massive form data submission] Error Solution

Source: Internet
Author: User

Problem description:

An exception occurs when the page data volume is large. Details: System. InvalidOperationException: the current state of the object invalidates the operation.

 

Cause:
This exception occurs because of the last abnormal update program released by Microsoft. in this security update, the maximum number of asp.net submissions is 1000. This exception occurs because the Page Submission volume exceeds the limit of 1000.

Solution:


. Net 2.0 or later versions are changed in web. config:
<Deleetask>
<Add key = "aspnet: MaxHttpCollectionKeys" value = "5000"/>
</AppSettings>


. Net 1.1
Remove the system automatic update and 360 system automatic update, and then uninstall the update Patch "kb2656358" in "Control Panel"

 

Source: System. InvalidOperationException: the current state of the object invalidates this operation. [a large amount of form data is submitted]

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.