Problem:
An unexpected error occurs when generating a report. The following error message can be found in the browser console.
Error running job. GR001.400: Bad Request
Cause:
For WebMaps with many layers and the use of CIM symbols, requests during reporting can become very large and exceed defined limits in the IIS configuration.
Solution:
To resolve the issue, two adjustments must be made in the web.config of the Reporting Service.
Path to the configuration file (default installation)
C:\Program Files\VertiGIS\VertiGIS Studio Reporting\Deployment\Service\Web.configmaxRequestLength
The <httpRuntime> tag within the <system.web> tag sets the maximum request length via the maxRequestLength attribute. This value is specified in kilobytes.
- Default: 4096 (4 MB)
//if not specified - Suggested: 20408 (20 MB)
<system.web>
<httpRuntime targetFramework="4.8" enableVersionHeader="false" maxRequestLength="20408"/>
<compilation targetFramework="4.8" />
</system.web>HttpRuntimeSection.MaxRequestLength Property
maxAllowedContentLength
The <requestLimits> tag within <system.webServer> sets the maximum allowed content length. This entry must be added manually. The value is specified in bytes.
- Default: 30000000 (~28.6 MB)
//if not specified - Suggested: 31457280 (30 MB)
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="20971520" />
</requestFiltering>
</security>Request Limits <requestLimits>
Comments
0 comments
Please sign in to leave a comment.