AmosFiveSix.com

Experience, Knowledge, Creativity

  • Increase font size
  • Default font size
  • Decrease font size
Home Blog .Net SOAP Error Behavior in IIS and ASP.Net

SOAP Error Behavior in IIS and ASP.Net

E-mail Print PDF

How to Use HTTP Detailed Errors in IIS 7.0
http://learn.iis.net/page.aspx/267/how-to-use-http-detailed-errors-in-iis/

HTTP Errors <httpErrors>
http://www.iis.net/ConfigReference/system.webServer/httpErrors

httpErrors Element [IIS 7 Settings Schema]
http://msdn.microsoft.com/en-us/library/ms690497%28v=vs.90%29.aspx

How to stop IIS 7 from blocking/stomping-on the response body generated by an ISAPI Filter
http://forums.iis.net/t/1146653.aspx

What to expect from IIS7 custom error module
http://blogs.iis.net/ksingla/archive/2008/02/18/what-to-expect-from-iis7-custom-error-module.aspx

Classic Pipeline
 * Error Responses : Custom Error Pages
    * 500 has been removed --> Returns HTTP 500 with a single line of text with the soap envelope tacked onto the end.
    * 500 : Insert content from static file into the error response --> Returns HTTP 500 with the contents of the HTML file with the soap envelope tacked onto the end.
    * 500 : Execute a URL on this site --> Returns HTTP 200 with the content of the file you specify and nothing else
    * 500 : Response with a 302 redirect --> Returns HTTP 302 with the content being a short HTML file with the soap envelope tacked onto the end.
 * Error Responses : Detailed errors
    * 500 : Insert content from static file into the error response --> Returns HTTP 500 with just the soap envelope (the file does not have to exist)
    * 500 : Execute a URL on this site --> Returns HTTP 500 with just the soap envelope (the URL does not have to exist)
    * 500 : Response with a 302 redirect --> Returns HTTP 500 with just the soap envelope (the URL does not have to exist)

My solution in my web.config:

<system.webServer>
        <!-- This ensures that soap data is passed back to the client when a 500 error occurs. Otherwise IIS will mangle it if custom error pages are turned on. -->
        <httpErrors existingResponse="PassThrough" />
</system.webServer>