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

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

w3wp意外终止

内容如下:

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

相关文章:

  • 2022-12-23
  • 2021-10-09
  • 2021-08-09
  • 2022-01-31
  • 2022-12-23
  • 2021-12-22
  • 2021-06-29
  • 2021-12-22
猜你喜欢
  • 2021-05-19
  • 2022-12-23
  • 2021-12-20
  • 2021-12-07
  • 2021-12-25
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案