0

これは、以下で正確に何を意味しますか。データベースにコードを送信するページを呼び出す非同期Webリクエストを実行しています。次に、データベースは、SQLアセンブリの1つに実行されるストアドプロシージャを起動します。ほとんどの場合は機能しますが、時々私はこれを取得します:

スレッドは中止されていました。

説明:現在のWebリクエストの実行中に未処理の例外が発生しました。エラーとエラーがコードのどこで発生したかについての詳細は、スタックトレースを確認してください。

例外の詳細: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
4

2 に答える 2

0

このエラーが発生する理由として最も可能性が高いのは、タイムアウトになっていることです。デフォルトでは 110 秒なので、ExecutionTimeout を増やします。

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

ExecutionTimeout を増やす方法について詳しく説明している記事を次に示します。

于 2015-01-28T17:20:51.007 に答える