I have a custom error page in my MVC application that is just ~ / error /, but when I return user errors in Web.Config like this:
<customErrors mode="On" defaultRedirect="~/error/" />
It only works on 400 errors, not 500 server errors, and instead gives me the following error message on a white page:
"An error occurred while processing your request."
How can I just make every mistake on the DefaultRedirect page?
source share