Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>When running under IIS7 and upwards there is another parameter:</p> <pre><code>&lt;system.webServer&gt; &lt;security&gt; &lt;requestFiltering&gt; &lt;requestLimits maxAllowedContentLength="10485760" /&gt; &lt;/requestFiltering&gt; &lt;/security&gt; &lt;/system.webServer&gt; </code></pre> <p>The default setting is slightly less than 30 MB. </p> <p>For uploaded files with size between <code>maxRequestLength</code> and <code>maxAllowedContentLength</code> IIS7 will throw an <code>HttpException</code> with HTTP code 500 and message text <code>Maximum request length exceeded</code>. When this exception is thrown, IIS7 kills the connection immediately. So an <code>HttpModule</code> that redirects on this error will only work if the <code>HttpException</code> is handled and cleared (using <code>Server.ClearError()</code>) in <code>Application_Error()</code> in global.asax.cs.</p> <p>For uploaded files with size bigger than <code>maxAllowedContentLength</code> IIS7 will display a detailed error page with error code 404 and <code>subStatusCode</code> 13. The error page can be found in C:\inetpub\custerr\en-US\404-13.htm</p> <p>For redirects on this error on IIS7 I recommend redirecting on <code>httpErrors</code> instead. To redirect to a different action set a smaller value for <code>maxAllowedContentLength</code> than <code>maxRequestLength</code> in web.config and also add the following to web.config:</p> <pre><code>&lt;system.webServer&gt; &lt;httpErrors errorMode="Custom" existingResponse="Replace"&gt; &lt;remove statusCode="404" subStatusCode="13" /&gt; &lt;error statusCode="404" subStatusCode="13" prefixLanguageFilePath="" path="http://yoursite.com/Error/UploadTooLarge" responseMode="Redirect" /&gt; &lt;/httpErrors&gt; &lt;/system.webServer&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload