I have a page (generic handler) on which I want to return the status code 500 to the client For that something is wrong I do this like this:
feedback Status code = 500; Response.StatusDescription = "Internal Server Error"; And at the same time I am telling the user that something went wrong. But instead of leaving my message, I get the default IIS message, like something saying:
< P> And if I go to IIS and remove the error page for 500 then I get this message: / P>Server Error 500 - Internal Server Error
The page can not be displayed because an internal server error Has come.
This works for the purpose of IIS6, but not in IIS7. What should I do to work in IIS7?
To bypass IIS7, there is a need for another line (500 as you set Based on error code):
feedback. Tree skipIISICIEfS = true; Reference:
Comments
Post a Comment