How to increase the form key count on an ASP.NET web forms page

Posted on October 18, 2013 by Michael Roma

You might get the following error when trying to postback "Operation is not valid due to the current state of the object". This is because ASP.NET limits the number of form keys that are posted during a postback.

To get around the issue, you can add this entry in the web.config to increase that limit:


    

 

comments powered by Disqus