如何访问mvc 默认的错误页

在ActionResult 中:

public ActionResult Error()
{
    return View("~/Views/Shared/Error.cshtml");
}

直接返回mvc 默认的错误页

原文地址:https://www.cnblogs.com/zychengzhiit1/p/4950466.html