Symptoms
You suddenly start to receive an error message that resembles the following in various locations in Business Portal when you try to save something with multiple lines:
Server Error in '/' Application.
Operation is not valid due to the current state of the object.
[InvalidOperationException: Operation is not valid due to the current state of the object.]
System.Web.HttpValueCollection.ThrowIfMaxHttpCollectionKeysExceeded() +4141871
Cause
This can be caused by a recent windows update that was released which limits the number of HTTP collection keys in an ASP.NET application.
Resolution
Increase the limit of HTTP collection keys. To do this, follow these steps:
-
On the server hosting the Business Portal website, browse out to the inetpub directory on the BP server
-
Find the web.config file (typically in the C:\inetpub\wwwroot\wss\VirtualDirectories\80 folder)
-
Make a backup copy of the web.config file
-
Open the web.config file in notepad
-
Scroll to the bottom until you find the <appSettings> tag
-
After the <appSettings> tag, add the following:
<add key="aspnet:MaxHttpCollectionKeys" value="100000"/> -
Save and try business portal again.
More Information
The following website has more information about the windows update:
http://technet.microsoft.com/en-us/security/bulletin/ms11-100.mspx