View Complete Thread
  • Re: Response.Flush breaks IIS's "Custom Errors"

    Jun 13, 2006 09:02 PM|anilr|LINK

    goinoutwest

    However, there seems to be no reason that the "Custom Error" page could not be invoked at the time of the error.  Often times, developers used code in the "Custom Error" page to alert them that an error had occurred on their web site.  If they use Response.Flush before the error occurs their alerting/logging mechanism will not be triggered.

     

    The custom-error feature was not designed to logging/alerting when an error occurs but for sending a customized error message to the client - as it is too late to send a customized error message to the client at this point, no custom-error page is invoked.

    Anil Ruia
    Software Design Engineer
    IIS Core Server