Mobile app version of vmapp.org
Login or Join
Angela700

: Disable default error pages/error messages in IIS 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,

@Angela700

Posted in: #Configuration #Error #Iis7

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 settings. But now my queries which should return some JSON data return a single error line. When the server gives me 403, I have the message "You do not have permission to view this directory or page." (simple line, no HTML around it).

What can I do to deactivate this and finally get what the app is returning and not what the server wants to return?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Angela700

1 Comments

Sorted by latest first Latest Oldest Best

 

@Cugini213

You can not disable the 403.17 (expired certificate) response in IIS.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme