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