http://www.matheda.com/Blog/Details/3/Exception-Logging-with-ELMAHELMAH在MVC3
不顯示原始ASP.NET錯誤頁面使用上述網址作爲參考,我可以看到當誤差從視圖發起ELMAH應顯示原始ASP.NET錯誤頁面。
我已經創建了下面的視圖,以產生誤差,但唯一的例外視圖是在XML或JSON中原始/源數據。
@{
ViewBag.Title = "ViewError";
}
<h2>View Error</h2>
@{
throw new NullReferenceException();
}
是否有可能在MVC3中查看原始ASP.NET錯誤頁面?