Why Does an Error Occur When I Delete An Item from an AgileForms Form Library?

Symptoms

When I attempt to delete an item from an AgileForms form library, the following error appears:

[InvalidOperatinException: 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)

Cause

This issue is not related to AgilePoint or AgileForms. It is a Microsoft issue. According to Microsoft:

The Microsoft security update that security bulletin MS11-100 addresses changes the default maximum number of form keys, files, and JSON members that ASP.NET will accept in a request to 1,000. This change was made to address the Denial of Service vulnerability that the Microsoft security bulletin MS11-100 documents.

Resolution

According to Microsoft, applications that reach the imposed limit for form keys or files can modify the ASP.NET appSetting aspnet:MaxHttpCollectionKeys like the following example:

<configuration>
  <appSettings>
    <add key="aspnet:MaxHttpCollectionKeys" value="3000" />
  </appSettings>
</configuration>

For AgileForms, make this change to the web.config files in the following folders:

More Information