私が得るあなたにあまりにも多くの時間をリダイレクトエラー: MVCのApplication_Start localhostが
localhost redirected you too many times.
私はApplication_Start
メソッドからページをエラーにリダイレクト
私のコードは次のようになります。それは、その場合には、セッションを使用することをお勧めし
protected void Application_Start()
{
AreaRegistration.RegisterAllAreas();
RouteConfig.RegisterRoutes(RouteTable.Routes);
}
protected void Application_Error(Object sender, EventArgs e)
{
var exception = Server.GetLastError();
if (exception != null)
{
Session["w"] = exception;
Response.Clear();
Server.ClearError();
Response.Redirect("~/Admin/Error");
}
}
}
表示/管理/エラーを表示するとエラーが発生する可能性がありますか? – kblau
いいえ...それは私に空のページがあなたにあまりにも多くの時間リダイレクトされたと言う空のページを与える – Tom