我在事件日志中收到ASP.NET错误。
Event code: 3005
Event message: An unhandled exception has occurred.
它包含以下信息:
Exception information:
Exception type: NullReferenceException
Exception message: Object reference not set to an instance of an object.
at 0.5.0(Exception )
at 0.5.7(Object , EventArgs )
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Web.UI.TemplateControl.OnError(EventArgs e)
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.some_page_aspx.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
我假设异常发生在自定义错误处理程序中。我不知道什么是0.5.7和0.5.0。如何找到错误位置?
调试模式已关闭。页面已预编译。 ASP.NET 4.0。 IIS 7集成模式。
类似的错误:
Exception information:
Exception type: NullReferenceException
Exception message: Object reference not set to an instance of an object.
at System.Web.PipelineModuleStepContainer.GetNextEvent(RequestNotification notification, Boolean isPostEvent, Int32 eventIndex)
at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)
at System.Web.HttpApplication.ResumeSteps(Exception error)
at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)
at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
这些错误不断生成,直到IIS重新启动。
更新
我启用了调试模式 - 事件日志中没有其他信息。
启用失败的请求跟踪 - 日志不包含任何有用的信息。
ModuleName
ManagedPipelineHandler
Notification
128
HttpStatus
500
HttpReason
Internal Server Error
HttpSubStatus
0
ErrorCode
0
ConfigExceptionInfo
Notification
EXECUTE_REQUEST_HANDLER
ErrorCode
The operation completed successfully. (0x0)