# Server Error: Operation is not valid due to the current state of the object

**URL:** <https://discuss.workflowgen.com/t/server-error-operation-is-not-valid-due-to-the-current-state-of-the-object/214>\
**Category:** Visual Studio Web Forms\
**Created:** [December 11, 2012, 9:28am UTC](https://discuss.workflowgen.com/t/server-error-operation-is-not-valid-due-to-the-current-state-of-the-object/214 "2012-12-11T09:28:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wfg-admin](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/wfg-admin/32/714_2.png) [@wfg-admin](https://discuss.workflowgen.com/u/wfg-admin)\
**Post date:** [December 11, 2012, 9:28am UTC](https://discuss.workflowgen.com/t/server-error-operation-is-not-valid-due-to-the-current-state-of-the-object/214/1 "2012-12-11T09:28:24Z")

</div>

This error could occur after a Windows Update that reduces the allowable size of the HTTP Context to be sent/received from the server to the clients browser.

See the [Vulnerability in ASP.NET Could Allow Denial of Service](https://docs.microsoft.com/en-us/security-updates/securityadvisories/2011/2659883) Microsoft Security Advisory for more information.

The default value of `MaxHttpCollectionKeys` is set to `1000` by the security patch. You can override this value by adding the following key to the `appsetttings` section in your web form’s `web.config` file:

```auto
<add key="aspnet:MaxHttpCollectionKeys" value="10000" />

```

(`10000` is just a suggestion; you can set it to the value of your liking.)
