student Box Office

Learn more from here.

student Box Office

We will prepare the best articles for you to acquire knowledge.

student Box Office

We will help you always. Just follow our guidelines.

student Box Office

Come and join here to share the knowledge in latest Technologies.

student Box Office

Share your views with us. And update your knowledge.

Showing posts with label IIS Web Config Error. Show all posts
Showing posts with label IIS Web Config Error. Show all posts

May 19, 2012

'Operation is not valid due to the current state of the object' error during postback


'Operation is not valid due to the current state of the object' error during postback



I had a aspx page which was working well, but suddenly I am getting the error "Operation is not valid due to the current state of the object." whenever a postback is done.
The stack trace is:
at System.Web.HttpValueCollection.ThrowIfMaxHttpCollectionKeysExceeded()
at System.Web.HttpValueCollection.FillFromEncodedBytes(Byte[] bytes, Encoding encoding)
at System.Web.HttpRequest.FillInFormCollection()

Solution:


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

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More