I’d like all errors to go to the same error page. I did initially try the error tag with statuscodes. That works fine but I’d rather not have to specify so any statuscodes and still have every error go to one page. The problem is that if I remove the statuscode entries, a 404 goes to the server’s 404 page and not my error page.
Is there some way to configure all errors to go to the same page?
If I understand well, you need to send all errors to your custom error page, and the errors that iis7 gives (not only your program)
This is something that you need to setup on II7, but you can also setup it from web.config (but actually give instructions to ii7) Here is an example
reference: http://www.iis.net/ConfigReference/system.webServer/httpErrors