【发布时间】:2009-04-30 10:03:33
【问题描述】:
我们有一个可以创建电子书的应用程序。 此应用程序有一个创建 AIR 文件的导出模块,但这可能需要一段时间(有些书有 2500 页)。 如果我们导出,我们会收到以下错误:
Thread was being aborted.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Threading.ThreadAbortException: Thread was being aborted.
Source Error:
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.
Stack Trace:
[ThreadAbortException: Thread was being aborted.]
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +501
System.Web.ApplicationStepManager.ResumeSteps(Exception error) +564
System.Web.HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) +141
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +436
我已将我的运行时执行超时更改为 3600 秒,但它一直在 3 分钟左右崩溃。 所以它与时间有关......每次我们接近它崩溃的 3 分钟时,我希望有人能帮助我。
【问题讨论】:
-
这是如何托管的?在共享主机环境中?还是专用/内部?
标签: c# asp.net multithreading abort