Product
Applies To | |||
Product(s): | Assetwise ALIM | ||
Version(s): | 16.x | ||
Environment: | N/A | ||
Area: | ALIM Web | ||
Subarea: | File Upload | ||
Original Author: | Dennis Chan, Bentley Product Advantage Team |
Problem Description:
Users get an error which says "Request Entity Too Large" when trying to upload a file.
Cause:
The file being upload is bigger than the IIS and ASP.Net request size limits, which are quite small by default.
Solution:
Edit the ALIM website's web.config file and make the following two changes.
(1) ASP.Net limit:
Alter the maxRequestLength field to be large enough in bytes to handle your request, as highlighted below.
<httpRuntime executionTimeout="900" maxRequestLength="1073741824" requestValidationMode="2.0" targetFramework="4.5"/>
(2) IIS limit:
Alter the maxAllowedContentLength attribute to be large enough (in bytes) to handle your request. Add the highlighted below within the <requestFiltering> element.
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="1073741824" />
</requestFiltering>
</security>
</system.webServer>
External References:
For more information please see the following links.