Submit a ticketCall us
Home > Success Center > Network Performance Monitor (NPM) > Website error: The URL-encoded form data is not valid

Website error: The URL-encoded form data is not valid

Created by Aileen de Lara_ret, last modified by MindTouch on Jun 23, 2016

Views: 410 Votes: 1 Revisions: 3

Overview

Due to a Microsoft Security Update intended to address an ASP.NET Security Vulnerability, some Orion Web Console views may fail to load, if they contain too much information. Specifically, views that require large numbers of HTTP collection keys will generate errors in the OrionWeb.log that are similar to the following:

 

2012-01-02 11:12:07,053 [6] ERROR ASP.global_asax - Application_Error(27bf48a5c1cd4932bddd18910b1de04b) System.Web.HttpException: The URL-encoded form data is not valid. ---> 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()
   --- End of inner exception stack trace ---
   at System.Web.HttpRequest.FillInFormCollection()
   at System.Web.HttpRequest.get_Form()
   at System.Web.HttpRequest.get_HasForm()
   at System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull)
   at System.Web.UI.Page.DeterminePostBackMode()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Environment

All Orion Core products running on to which Microsoft Security Bulletin MS11-100 has bee applied

 

Resolution

To resolve this issue, increase the value configured for the aspnet:MaxHttpCollectionKeys key, as indicated in the following procedure.

To increase the value configured for the aspnet:MaxHttpCollectionKeys key:
Note: All edits made in this procedure are overwritten if and when the SolarWinds Configuration Wizard runs. If you run the SolarWinds Configuration Wizard, you will need to make this edit again.

For NPM:

  1. Using an account with administrative privileges, log on to your SolarWinds server.
  2. In a text editor, open the Orion Web Console configuration file, web.config.
    Note: The default location of web.config is C:\Inetpub\SolarWinds\.
  3. Locate the following line: <add key="aspnet:MaxHttpCollectionKeys" value="XXX" />
    <add key="aspnet:MaxHttpCollectionKeys" value="&lt;em&gt;number&lt;/em&gt;"/>
  4. Increase the value for the aspnet:MaxHttpCollectionKeys key
    Note: Internal testing has shown that 2000 may be an acceptable value for NPM.
  5. Save web.config.

 

For APM:

  1. Using an account with administrative privileges, log on to your SolarWinds server.
  2. In a text editor, open the Orion Web Console configuration file, web.config.
    Note: The default location of web.config is C:\Inetpub\SolarWinds\.
  3. Add the following line in the <AppSettings><appsettings/> section: <add key="aspnet:MaxHttpCollectionKeys" value="XXX" />
  4. Increase the value for the aspnet:MaxHttpCollectionKeys key
    Note: Internal testing has shown that 4000 may be an acceptable value for APM.
  5. Save web.config.

 

 

 

 

Last modified

Tags

Classifications

Public