Error Handling in asp.net mvc 3

后端 未结 5 1486
闹比i
闹比i 2020-12-08 04:32

Is there a built in or a proper way to handle errors in asp.net mvc 3?

This is what I want to do:

  1. If the application crashes, or throws an error, it go
5条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-08 05:02

    The easiest way I think you can do that is using the elmah library.

    Take a look at this: http://code.google.com/p/elmah/wiki/MVC and this http://www.hanselman.com/blog/ELMAHErrorLoggingModulesAndHandlersForASPNETAndMVCToo.aspx

提交回复
热议问题