Pages

Showing posts with label Operation is not valid due to the current state of the object. Show all posts
Showing posts with label Operation is not valid due to the current state of the object. Show all posts

Friday, February 10, 2012

How Good/Bad Windows Updates can be...


A recent security update “Microsoft Security Bulletin MS11-100 - Critical” from Microsoft made our asp.net application (some pages) to crash which is hosted on IIS Server running on Windows Server 2008.

Following are the error messages from the log:
1.       Operation is not valid due to the current state of the object.
2.       The URL-encoded form data is not valid.

The two strange error messages made me busy for the next half an hour. After some research I came to know that the server had undergone a critical security update. Though, it is common for the server to auto update windows features.. this time there was a critical security update which involves all versions of .Net framework.

We tried to add new appSetting Key/Value in web config file to fix the issue.

<add key="aspnet:MaxHttpCollectionKeys" value="2001"/>
MS Windows auto update feature is good which keeps your system up to date. However, the latest security update created a technical glitch.