ASP.NET MVC中,通用的異常處理

當web.config中的 <customErrors mode="Off"/>設置爲關閉的時候,只能依賴Global.asax.cs中的Application_Error方法處理。 當web.config中的 <customErrors mode="On"/>設置爲開啓的時候,可以實現的方法比較多。 在Global.asax.cs中 ,可以編寫處理異常的代碼的點有2個,一個是默認生成的   pu
相關文章
相關標籤/搜索