???????: ???? ThreadAbortException ??? ??? ?????? Response.End ?? Response.Redirect ?? Server.Transfer

?????? ????????? ?????? ?????????
???? ???????: 312629 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

???????

??? ??? ?????? ????? Response.End? ?? Response.Redirect, ?? Server.Transfer? ???? ??????? ThreadAbortException. ????? ??????? ????? try-catch ?????? ??? ?????????.

?????

???? ????? Response.End ????? ?????? ????? ??????? ??? ??? Application_EndRequest ?? ???? ????? ????? ????????. ????? ?? ????????? ???????? ???? ???? Response.End ?? ??? ??????.

???? ??? ??????? ?? ????? Response.Redirect ? Server.Transfer ???? ??????? ??? ????????? ??Response.End ??????.

????

?????? ??? ??? ???????? ???? ???? ????? ???????:
  • ??Response.End, ?????? ????? HttpContext.Current.ApplicationInstance.CompleteRequest ????? ?? Response.End ??????? ????? ???????? ???????? ???? Application_EndRequest.
  • ?? Response.Redirect, ?????? ????? ????? ????? Response.Redirect(String url, bool endResponse) ???? ????? ??? ?????? endResponse ??????? ????????? ??????? ?? Response.End. ??? ???? ??????:
      Response.Redirect ("nextpage.aspx", false);
    						
    ??? ??? ?????? ??? ???? ??????? ?????????? ???????? ???? ???? Response.Redirect ?????.
  • ?? Server.Transfer? ?????? ????? Server.Execute ????? ?? ???.

?????

??? ?????? ????? ????????.

???????

???? ???????: 312629 - ????? ??? ??????: 23/????/1434 - ??????: 2.0
????? ???
  • Microsoft ASP.NET 4.5
  • Microsoft ASP.NET 4.0
  • Microsoft ASP.NET 3.5
  • Microsoft ASP.NET 2.0
  • Microsoft ASP.NET 1.1
  • Microsoft ASP.NET 1.0
????? ??????: 
kbexcepthandling kbprb KB312629

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com