0

I've implemented this solution to running a long running task in asp.net http://haacked.com/archive/2011/10/16/the-dangers-of-implementing-recurring-background-tasks-in-asp-net.aspx

But I've been getting this error: "A process serving application pool 'DefaultAppPool' exceeded time limits during shut down. The process id was '1111'. " Has anyone run into this issue before and know what, if anything, I've done wrong.

Is there a limit to how long asp.net will wait because my task may take at least a couple hours to run.

Please don't answer by saying I shouldn't be using asp.net. I have to at this point.

thanks.

4

1 に答える 1

0

Asp.netは、長時間実行されるタスクには適していません。(あなたが言及したブログの場合にも記載されています。)

長時間実行されるタスクに最適なソリューションは、長時間実行されるジョブを対象としたフレームワークを使用することです。

Windowsサービスの使用を検討する必要があります。このような長時間実行されているジョブのステータスを追跡するためのテーブルを作成し、ページにこれらのテーブルのジョブステータスを表示することができます。

于 2012-08-17T03:46:43.063 に答える