Error “The URL-encoded form data is not valid. Operation is not valid due to the current state of object” when defining an SLA in Performance Center

  • KM00886979
  • 02-May-2014
  • 02-Jul-2014

Summary

This issue occurs when adding more than 500 transactions and a procedure is provided to overcome it.

Error

When defining an SLA in Performance Center (PC) and trying to add more than 500 transactions as in the screenshot below:

image text

Performance Center fails with the following error message:

“The URL-encoded form data is not valid. Operation is not valid due to the current state of object”

image text

Cause

This is due to the default security limitations set by Microsoft .NET Framework. For details visit: http://support.microsoft.com/kb/2661403

Fix

To overcome the issue, follow the steps below:

  1. Ensure that ALM PC is not being used
  2. Navigate to:   <PC Install PATH>\PCWEB\web.config on the PC server
  3. Take a backup copy of the file web.config
  4. Edit the original web.config and find the following tag:
    <configuration>
            <appSettings>
  5. Add a line:
    <add key="aspnet:MaxHttpCollectionKeys" value="20000" />
  6. Restart Internet Information Server (IIS) service by Click Start, click Run type IISReset, and then click OK