Application_Error のグローバル レベルでカスタム エラー処理を試みています。
Exception ex = Server.GetLastError();
Server.ClearError();
AssortmentDefinitionLogManager.LogException(ex);
Context.RewritePath("/Error/Error");
IHttpHandler httpHandler = new MvcHttpHandler();
httpHandler.ProcessRequest(Context);
しかし、私はこのエラーが発生します
Error Message - The view '~/Views/Shared/Error' or its master was not found or no view engine supports the searched locations.
私もこれを試しました
var urlHelper = new UrlHelper(HttpContext.Current.Request.RequestContext);
var redirectUrl = urlHelper.Action("Error", "Error");
Response.Redirect(redirectUrl);