Disable default error pages/error messages in IIS
- by Antoine
I have this web application (ASP.Net MVC 3) that on certain conditions returns a custom JSON string with a HTTP status code for an error (403, 415, 500). It is deployed on a Win 2008 R2 server with IIS 7.5
Initially I was gettting the standard HTML pages for the error instead of the JSON data. I removed the error pages for these errors in the app…