2012-08-28 2 views
0

아래의 내용은 정확히 무엇을 의미합니까? 내 데이터베이스에 코드를 보내는 페이지를 호출하는 비동기 웹 요청을 실행 중입니다. 그런 다음 내 데이터베이스는 내 SQL 어셈블리 중 하나로 실행되는 저장 프로 시저를 실행합니다. 대부분의 경우 작동하지만 때로는 이걸 얻습니다.스레드가 중단되고 있습니다.

스레드가 중단되었습니다.

설명 현재 웹 요청을 실행하는 동안 처리되지 않은 예외가 발생했습니다. 오류 및 코드에서 시작된 위치에 대한 자세한 정보는 스택 추적을 검토하십시오.

예외 정보 : System.Threading.ThreadAbortException : 스레드가 중단되었습니다.

소스 오류 :

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

스택 추적은 :

[ThreadAbortException: Thread was being aborted.] 
    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +486 
    System.Web.ApplicationStepManager.ResumeSteps(Exception error) +501 
    System.Web.HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) +123 
    System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +379 
+0

오류는 무엇입니까? 요청을 실행하는 스레드가 중단되어 코드가 실행되지 않습니다. 더 자세한 내용과 코드 샘플을 제공하여 왜 이런 일이 일어나는지 알아야합니다. –

+0

문제는 웹 응용 프로그램이나 어셈블리에서 코드가 어디에 있는지 정확히 알 수 없습니까? – cdub

+1

그건 힘든 형제 야. – valen

답변

0

당신이 가장 가능성이 오류가 발생하는 이유는 시간이 초과지고 있다는 점이다. ExecutionTimeout은 기본적으로 110 초이므로 늘리십시오.

<compilation debug="false"></compilation> 
<httpRuntime executionTimeout="1800"/> //1800 seconds/30 minutes. 

다음은 executionTimeout에 증가하는 방법에 대한 세부 사항에 더 어울릴 article입니다.

0

앱 도메인이 여러 가지 이유로 재활용 될 수 있습니다. 이로 인해 스레드가 예외를 중단시킬 수 있습니다. 프로세스가 장기 실행 인 경우

Here is an article which explains some of the reasons for a recycle

, IIS/ASP.Net 그것을 실행하기에 좋은 장소는 일반적으로하지 않습니다.

+0

그 이유를 추가하거나 예를 들어 추가 정보에 대한 링크를 추가 할 수 있습니까? –

관련 문제