I\'m struggling to resolve this problem. On my local machine (Win7/VS2010/IIS 7.5) and another identical developer\'s machine, the following code returns the 500 status code, an
Looks like IIS is eating the response and trying to do it's custom error stuff with it.
Try setting
Response.TrySkipIisCustomErrors = true
in your catch.
Alternatively set the following config value:
<httpErrors errorMode="Custom" existingResponse="PassThrough"/>