ASP.Net Response.Redirect not working in Application_Error?

后端 未结 5 1975
萌比男神i
萌比男神i 2021-01-04 03:52

I don\'t know why the Response.Redirect not working properly when I deploy my code to IIS7? The white/yellow error page always get displayed instead of my Errors.aspx. But w

5条回答
  •  太阳男子
    2021-01-04 04:41

    HttpContext.Current.Server.ClearError();
    HttpContext.Current.ClearError();
    ====================================================================
    Redirect to NEW VIRTUAL! directory (Error)
    HttpContext.Current.Response.Redirect([http://localhost:8990/Error/ErrorPageServer.aspx]);
    

提交回复
热议问题