How Do I Increase the Maximum URL Larger for the File Upload Form Control?

Symptoms

When a form user downloads a file that is uploaded by a File Uplaod form control, this error shows:

The length of the URL for this request exceeds the configured maxUrlLength value.

Cause

The URL length is more than the default maxUrlLength value of 260 characters.

Resolution

  1. In a text editor, open the file (NX Portal installation folder) C:\Program Files\AgilePoint\AgilePointWebApplication\AgilePointPortal\web.config.
  2. In the <httpRuntime> node, add this parameter, and change the URL length:
    Field NameDefinition

    maxUrlLength

    Function:
    Specifies the maximum length of the URL to download a file that is uploaded by File Upload form control.
    Accepted Values:
    A maxUrlLength parameter in the following format:

    maxUrlLength="[maximum number of characters in the URL]"

    Default Value:
    260
    Example:
    <httpRuntime targetFramework="4.5" requestValidationMode="2.0" requestPathInvalidCharacters="" maxRequestLength="65536" maxUrlLength="1024" />