w3wp意外终止

今天跟踪了一个客户问题,在操作系统一段时间后,就会长时间的等待,后来查看日志显示w3wp出现的错误并终止了程序。

在事件查看器中显示只有条错误信息,而且还是.Net Runtime2.0的:

image

内容如下:

EventType clr20r3, P1 w3wp.exe, P2 6.0.3790.1830, P3 42435be1, P4 webframeworkexceptiondebug, P5 1.0.0.0, P6 49d8d7d7, P7 3, P8 8, P9 system.indexoutofrangeexception, P10 NIL.

绿色标识的是异常信息,但是没有堆栈信息不号跟踪。查找了一些资料,由于.ner framework2.0原始版的设计原因,导致了asp.net没有显示出具体的出错信息。

设置IHttpModule输出提示信息

    <httpModules>
      <add name="HelloWorldModule" type="WebMonitor.HelloWorldModule,WebMonitor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=2fba8f3f791adbcc" />
            <add name="UnhandledExceptionModule123" type="WebMonitor.UnhandledExceptionModule,WebMonitor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=2fba8f3f791adbcc"/>
        </httpModules>

webMonitor.dll

webMonitorsource.rar

posted on 2009-04-06 00:57  fredli2005  阅读(399)  评论(0编辑  收藏  举报

导航