Serving 404s instead of errors - solved :)

Below comes from email that my customer send to me.

 

I’ve created a special MVC Route Handler that simply serves a 404 error. 

In the Global.asax, we can now add what we would like to serve a 404. 

Like so

 Serving 404s instead of errors - solved :)

  

This will stop the errors being sent to us, while providing the user with the correct response for missing items.

The route handler simply goes

 Serving 404s instead of errors - solved :)

 

转载于:https://www.cnblogs.com/cw_volcano/archive/2013/03/27/2984212.html