HTTP error 413 - get and set uploadReadAheadSize in IIS

In this post, I describe how to get and set uploadReadAheadSize in IIS to fix the error:

"An unknown error occurred while processing the request on the server. The status code returned from the server was: 413"

Screenshot showing error with status code 413

Cause

This error occurred after I created a self-signed SSL certificate and tried to access a site in IIS over HTTPS.

Error code 413 means "Request Entity Too Large".


Resolution

To resolve the issue, I increased the uploadReadAheadSize in IIS as follows:

- Open IIS

- Select your site in the treeview on the left

- Open Configuration Editor:

Screenshot of Configuration Editor in IIS

- Open the Section drop down, expand system.webServer then select serverRuntime:

Screenshot showing serverRuntime in IIS

- Here you can check your current uploadReadAheadSize and set a new value in bytes between 0 and 2147483647 (more information from Microsoft)

Screenshot of uploadReadAheadSize in IIS

- Click outside uploadReadAheadSize then press Apply in the top right to save your changes

Error 413 should now be resolved.


Related Posts

- NET::ERR_CERT_WEAK_SIGNATURE_ALGORITHM - IIS SSL Certificate

Comments

Popular posts from this blog

LG TV This app will now restart to free up more memory

LG TV Clear All Browsing History Data

Excel Import CSV not using "Use First Row as Headers"