Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Our application is giving the following error in a large form:

System.InvalidOperationException: Operation is not valid due to the current state of the object. at System.Web.HttpValueCollection.ThrowIfMaxHttpCollectionKeysExceeded() at System.Web.HttpValueCollection.FillFromEncodedBytes(Byte[] bytes, Encoding encoding) at System.Web.HttpRequest.FillInFormCollection()

When I investigated the problem, we found it was related to MS11-100.
The recommendationis to the following entry to the appsettings:

<add key="aspnet:MaxHttpCollectionKeys" value="36001" />


However, after adding the key in the Sharepoint Web Application, it is still giving the same error.
I have tried adding the key both manually in the web.config and programmatically using the SPWebConfigModification

Should this setting work in SharePoint?
Could I have something wrong in my infrastucture that SharePoint is simply not taking into consideration the web.config changes?
Any suggestions of how best to investigate this issue please?

Any assistance woul be greatly appreciated.

share|improve this question
    
What's the full url of your page and which web.config did you modify? –  Per Jakobsen Apr 26 '12 at 19:00
    
Thanks for your comment. In my sharepoint environment, I have a number of web applications and I have modified the web.config of one of these web applications. The web applications have a separate (dedicated) application pool. –  Joseph Caruana Apr 26 '12 at 20:47
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.