무료법률 상담

 서울시청 상담실
- 안내전화 : 02-731-6156
- 위 치 : 시청 서소문별관 1동(1층) 다산플라자內 
 
 가정법률상담소
-안내전화 : 02-780-5688
- 위 치 : 영등포구 여의도동 11-13 여성백인회관 
 
 법무부(국제법무과) 국제통상법률지원단 
- 안내전화 : 503-9504~6 - 위 치 : 과천 정부2청사 법무부
- 내 용 : 수출중소기업, 벤처기업의 통상활동 법률지원 
 
 법률구조공단 법률상담소
- 음성상담 : 국번없이 132
- 위 치 : 공단본부 (지하철 2호선 교대역 하차 도보 5분거리)
- 구조공단 지역별 안내전화 
ㆍ서울지방검찰청 02-536-5577
ㆍ동부출장소 02-453-5888
ㆍ남부출장소 02-2648-5966
ㆍ북부출장소 02-972-1765
ㆍ서부출장소 02-713-6009
ㆍ의정부출장소 031-874-0100
 

PRB: ThreadAbortException Occurs If You Use Response.End, Response.Redirect, or Server.Transfer

Article ID : 312629
Last Review : August 1, 2003
Revision : 2.5
This article was previously published under Q312629

SYMPTOMS

If you use the Response.End, Response.Redirect, or Server.Transfer method, a ThreadAbortException exception occurs. You can use a try-catch statement to catch this exception.

Back to the top

CAUSE

The Response.End method ends the page execution and shifts the execution to the Application_EndRequest event in the application's event pipeline. The line of code that follows Response.End is not executed.

This problem occurs in the Response.Redirect and Server.Transfer methods because both methods call Response.End internally.

Back to the top

RESOLUTION

To work around this problem, use one of the following methods:
For Response.End, call the HttpContext.Current.ApplicationInstance.CompleteRequest method instead of Response.End to bypass the code execution to the Application_EndRequest event.
For Response.Redirect, use an overload, Response.Redirect(String url, bool endResponse) that passes false for the endResponse parameter to suppress the internal call to Response.End. For example:
  Response.Redirect ("nextpage.aspx", false);
						
If you use this workaround, the code that follows Response.Redirect is executed.
For Server.Transfer, use the Server.Execute method instead.

Back to the top

STATUS

This behavior is by design.

Back to the top

Project 삭제하기

You can find the TFSDeleteProject command-line utility in <drive >\Program Files\Microsoft Visual Studio 8\Common7\IDE on Team Explorer client computer.


ex)
TFSDeleteproject [/q] [/force] [/server:servername] team project name