Redirect errors to different views in ASP.NET MVC [closed]

0

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?

    
asked by JessMad 12.10.2017 в 03:22
source

1 answer

1

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

link

    
answered by 12.10.2017 / 22:25
source