我在Production Server中部署了一个Web应用程序。在生产中,我们使用的是Windows Server 2012,IIS 8.5。部署应用程序成功,但在部署Web应用程序后2-3小时或1天后出现错误。
例外如下
**Exception information:**
**Exception type**: COMException
**Exception message:** The handle is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE))
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at System.Web.Hosting.IIS7WorkerRequest.ReMapHandlerAndGetHandlerTypeString(HttpContext httpContext, String path, Boolean& handlerExists)
at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
我尝试过以下方法: