ASP.NET MVC中,通用的异常处理

当web.config中的 <customErrors mode="Off"/>设置为关闭的时候,只能依赖Global.asax.cs中的Application_Error方法处理。 当web.config中的 <customErrors mode="On"/>设置为开启的时候,可以实现的方法比较多。 在Global.asax.cs中 ,可以编写处理异常的代码的点有2个,一个是默认生成的   pu
相关文章
相关标签/搜索