Possible Duplicate:
Maximum request length exceeded
I'm using IIS 6 to host my Asp.net site. I'm having
"Maximum request length exceeded."
error. I fixed it on IIS 7 but on IIS 6, Asp.net error triggers before going into the Global.asax Application_Error. I'm just redirecting to a custom error page in Application_Error. Please let me know what I'm missing here.
Here is the fix I used in IIS 7 webconfig
<system.webServer>
<security>
  <requestFiltering>
    <requestLimits maxAllowedContentLength="100000" />
  </requestFiltering>
</security>
<httpErrors errorMode="Custom" existingResponse="Replace">
  <error statusCode="404" subStatusCode="13" prefixLanguageFilePath="" path="UploadError.aspx" responseMode="Redirect" />
</httpErrors>
The solution above won't work on IIS 6! I need to do it in Application_Error on Global.asax. Which is not triggering before Maximum request length exceeded.
 
     
     
    