How could I log the different types of errors in ASP MVC 5, likewise send them to a screen or error view 500, 404, etc.
In the same way how could they log in?
How could I log the different types of errors in ASP MVC 5, likewise send them to a screen or error view 500, 404, etc.
In the same way how could they log in?
To redirect to a custom error page you use modify your web.config under 'system.web' add 'customeErrors'; something like the following:
<customErrors mode="On">
<error statusCode="404" redirect="404.html"/>
<error statusCode="404" redirect="500.html"/>
</customErrors>
For more information here I leave a link