The page was not displayed because the request entity is too large

Author - Umang Pasricha

Issue “The page was not displayed because the request entity is too large” while uploading a file.

This error occurs when you try to upload large size of files but it extends the limits for the number of bytes allowed in the entity body of a request and the number of bytes a Web server will read into a buffer. The value must be between 0 and 2147483647 bytes. The default value is 49152 bytes.

To resolve this issue, you have set the “uploadReadAheadSize” value in IIS. Here are the steps:

Open “Internet Information Services (IIS) Manager” from windows search.
Select your site for which you want to increase this limit (under which you are hosting your web application).
From the Management section, double click “Configuration Editor”.
From “Section” dropdown select- system.webServer then serverRuntime.
You can change the “uploadReadAheadSize” value to 20MB. The value there is in bytes. The maximum value you can set is- 2147483647 bytes.

Webner Solutions is a Software Development company focused on developing Insurance Agency Management Systems, Learning Management Systems and Salesforce apps. Contact us at dev@webners.com for your Insurance, eLearning and Salesforce applications.

Leave a Reply

Your email address will not be published. Required fields are marked *