IIS 7 下的 ASP.NET 应用程序出现以下异常的原因是什么?这是一个未处理的异常,会重新启动整个应用程序。
异常: System.AccessViolationException
消息:试图读取或写入受保护的内存。这通常表明其他内存已损坏。
堆栈跟踪:
in System.Web.Hosting.UnsafeIISMethods.MgdIsLastNotification(IntPtr pRequestContext, RequestNotificationStatus dwStatus)
in System.Web.HttpRuntime.FinishRequestNotification(IIS7WorkerRequest wr, HttpContext context, RequestNotificationStatus& status)
in System.Web.HttpRuntime.OnRequestNotificationCompletionHelper(IAsyncResult ar)
in System.Web.HttpRuntime.OnRequestNotificationCompletion(IAsyncResult ar)
in System.Web.HttpAsyncResult.Complete(Boolean synchronous, Object result, Exception error, RequestNotificationStatus status)
in System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)
in System.Web.HttpApplication.ResumeStepsWaitCallback(Object error)
in System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
in System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
in System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)
[更新]
系统: Windows Web Server 2008 64 位。
应用程序详细信息:不使用页面架构的 ASP.NET 应用程序。它使用自定义 http 同步和异步处理程序处理请求。还有来自 ThreadPool 或由 Thread 类创建的并行线程正在运行。