Application Runtime Error - Maximum request length exceeded IIS error
When loading your GpsGate server website you get one of the following errors:
- Server Error in '/' Application Runtime Error.
- System.Web.HttpException (0x80004005): Maximum request length exceeded.
- [HttpException (0x800004005): Request timed out.]
Cause
The error in IIS does not display the exact error message due to security measures. In most cases, this issue occurs because the request to IIS exceeds the maximum request length or times out.
Solution
Please edit the web.config file located under C:\GpsGateServer\IIS
Make a backup of the web.config file first.
Once the document is open you will the following code:
1. Identify where <system.web>
starts. Under this line, please paste:
<httpRuntime requestValidationMode="2.0" maxRequestLength="1048576" executionTimeout="3600" />
2. Identify where <system.webServer>
starts. Under this line, please paste:
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="1073741824" />
</requestFiltering>
</security>
3. Save the document and reload the your platform.