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

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-07
猜你喜欢
  • 2022-12-23
  • 2022-02-10
  • 2021-05-24
  • 2021-12-28
  • 2022-02-23
  • 2021-08-13
相关资源
相似解决方案