C# .NET - Operation is not valid due to the current state of the object

Asked By Dom Afonso on 15-Jun-12 08:01 AM
Jitendra Faye replied to Dom Afonso on 15-Jun-12 08:05 AM
To solve this error, increase the MaxHttpCollection value. Try adding the following setting in your web.config's <appsettings> block.

    <add key="aspnet:MaxHttpCollectionKeys" value="4000" />
Vikram Singh Saini replied to Dom Afonso on 16-Jun-12 01:04 AM
Would you like to share detail for which operation you are getting this type of error message? And please share the code in which you are getting error.