在我的web.config中,我包括:
<customErrors mode="On" />@H_403_3@现在黄色的死亡屏幕不再显示了.
我以为我必须将HandleError属性包含在我的控制器方法或类本身中:[HandleError] public ActionResult About() { throw new Exception("Just an exception"); return View(); }@H_403_3@但它没有任何影响,它与以下相同:
public ActionResult About() { throw new Exception("Just an exception"); return View(); }@H_403_3@