How do I get ASP.NET MVC to honor my customErrors settings?
问题 In the customErrors tag in my web.config, I am pointing to a controller. In my controller I am redirecting to an external error page that is shared by multiple applications. <customErrors defaultRedirect="~/Error/ServerError" mode="On"> My controller: public class ErrorController : Controller { public ActionResult ServerError() { return Redirect("/Systems/ASPNETErrorHandling/ErrorPage.aspx"); } public ActionResult ErrorTest() { throw new Exception("testing error handling"); } } I'm calling