2017-09-11 3 views
0

기존 웹 사이트를 인계 받고 내 컴퓨터에서 응용 프로그램을 실행하려고하지만 다음 오류가 발생하여 응용 프로그램을 시작할 수 없습니다.system.threading .threadAbortException 오류

System.Threading.ThreadAbortException occurred 
HResult=0x80131530 
Message=Thread was being aborted. 
Source=mscorlib 
StackTrace: 
at System.Threading.Thread.AbortInternal() 
at System.Threading.Thread.Abort(Object stateInfo) 

이 내 코드입니다

protected void Application_BeginRequest(object sender, EventArgs e) { 
      if (DemoWeb.Helpers.Application.ApplicationManager.StartUpError != "") 
     { 

      Response.Write("<div class=\"demoweb-securityerror\">" + demoweb.Helpers.Application.ApplicationManager.StartUpError + "</div>"); 
       Response.End(); 
      } 

어떻게 그것은으로 Response.End를 우회 할 수 있습니까?

답변

0

나는 그것을 작동시켰다. 방금 ​​try & catch 메서드를 추가하고 Response.End를 이동했습니다.

try { 
    // code 
    } 
catch(exception ex) 
    { 
    Response.End(); 
    }