IIS7 Custom ASP.NET Errors

Posted by Nathan on Server Fault See other posts from Server Fault or by Nathan
Published on 2010-05-03T03:06:33Z Indexed on 2010/05/03 3:09 UTC
Read the original article Hit count: 376

Filed under:
|
|

I'm trying to setup a custom error page for the IIS 7 404.13 (Content length too large) error. Here's the relevant sections of my web.config file:

<system.webServer>
  <httpErrors errorMode="Custom" existingResponse="Replace">
    <remove statusCode="404" subStatusCode="13" />
    <error statusCode="404" subStatusCode="13" prefixLanguageFilePath="" path="/FileUpload/Test.aspx" responseMode="ExecuteURL" />
  </httpErrors>
  <security>
    <requestFiltering>
      <requestLimits maxAllowedContentLength="10240" />
    </requestFiltering>
  </security>
</system.webServer>

The response that is being sent back to the server is blank. The Test.aspx file is not blank.

Any idea what's going on here?

© Server Fault or respective owner

Related posts about iis7

Related posts about custom-errors