IIS 6 "Maximum request length exceeded." trigger before Global.asax
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3853767/maximum-request-length-exceeded">Maximum request length exceeded</a>  </p>
</blockquote>



<p>I'm using IIS 6 to host my Asp.net site. I'm having </p>

<blockquote>
  <p>"Maximum request length exceeded."</p>
</blockquote>

<p>error. I fixed it on IIS 7 but on IIS 6, Asp.net error triggers before going into the <code>Global.asax</code> Application_Error. I'm just redirecting to a custom error page in <code>Application_Error</code>. Please let me know what I'm missing here.</p>

<p><strong>Here is the fix I used in IIS 7 webconfig</strong></p>

<pre><code>&lt;system.webServer&gt;
&lt;security&gt;
  &lt;requestFiltering&gt;
    &lt;requestLimits maxAllowedContentLength="100000" /&gt;
  &lt;/requestFiltering&gt;
&lt;/security&gt;
&lt;httpErrors errorMode="Custom" existingResponse="Replace"&gt;
  &lt;error statusCode="404" subStatusCode="13" prefixLanguageFilePath="" path="UploadError.aspx" responseMode="Redirect" /&gt;
&lt;/httpErrors&gt;
</code></pre>

<p></p>

<p>The solution above won't work on IIS 6! I need to do it in <code>Application_Error</code> on <code>Global.asax</code>. Which is not triggering before <code>Maximum request length exceeded.</code></p>
