Ive added custom error pages to my project, and referenced them in the web.config
like so:
<customErrors mode="On" redirectMode="ResponseRewrite" defaultRedirect="~/Errors/500.aspx">
<error statusCode="404" redirect="~/Errors/404.aspx" />
<error statusCode="500" redirect="~/Errors/500.aspx" />
</customErrors>
When I browse to a page that does not exist I see the 404
page rendered as expected.
However, I now have a bug in the following POST
controller method:
CheckRenewalEligibility(string uprn);
When I click the button which invokes this, nothing happens. When I open dev tools in chrome I can see:
And then when I click on the red highlighted CheckRenewalEligibility
to see the Preview, it displays my custom error page.
My question is, why is this not being rendered in the front end when a 500
error is clearly occurring, why is it just doing nothing.
note I have an aspx and html version of both custom error pages sat in the Errors
path.