“默认应用程序池”与万维网发布服务发生致命通信错误
每次访问该站点时,我都会收到事件日志条目:
Event Type: Error Event Source: VsJITDebugger Event Category: None Event ID: 4096 User: NT AUTHORITY\NETWORK SERVICE Computer: COMPUTER-02 Description: An unhandled Microsoft .NET Framework exception occurred in w3wp.exe [2908]. Just-In-Time debugging this exception failed with the following error: Debugger could not be started because no user is logged on. Check the documentation index for 'Just-in-time debugging, errors' for more information. Data: 0000: 02 00 5c 80 ..\
系统日志
Event Type: Error Event Source: W3SVC Event Category: None Event ID: 1002 Date: 28/03/2011 Time: 17:49:28 User: N/A Computer: COMPUTER-02 Description: Application pool 'DefaultAppPool' is being automatically disabled due to a series of failures in the process(es) serving that application pool.
应用程序日志
Event Type: Warning Event Source: W3SVC Event Category: None Event ID: 1011 Date: 28/03/2011 Time: 17:49:28 User: N/A Computer: COMPUTER-02 Description: A process serving application pool 'DefaultAppPool' suffered a fatal communication error with the World Wide Web Publishing Service. The process id was '3724'. The data field contains the error number. Data: 0000: 6d 00 07 80 m..
我还遵循了 Microsoft 的建议支持网站但运气不好。网络服务帐户访问注册表没有任何问题。
我需要在 IIS6(而不是 IIS Express 7.5)中运行该站点,因为该站点运行 ASP 以及 ASP.NET 我需要通配符映射以在 ASP 中进行身份验证。
我已经完全没有想法了,因为该网站在 ASP.NET 3.5 (CLR v2...) 中运行良好,但这次升级通过调试完全搞砸了。
任何帮助将不胜感激。
I am getting Event Log entries every time I access the site:
Event Type: Error Event Source: VsJITDebugger Event Category: None Event ID: 4096 User: NT AUTHORITY\NETWORK SERVICE Computer: COMPUTER-02 Description: An unhandled Microsoft .NET Framework exception occurred in w3wp.exe [2908]. Just-In-Time debugging this exception failed with the following error: Debugger could not be started because no user is logged on. Check the documentation index for 'Just-in-time debugging, errors' for more information. Data: 0000: 02 00 5c 80 ..\
System Logs
Event Type: Error Event Source: W3SVC Event Category: None Event ID: 1002 Date: 28/03/2011 Time: 17:49:28 User: N/A Computer: COMPUTER-02 Description: Application pool 'DefaultAppPool' is being automatically disabled due to a series of failures in the process(es) serving that application pool.
Application Log
Event Type: Warning Event Source: W3SVC Event Category: None Event ID: 1011 Date: 28/03/2011 Time: 17:49:28 User: N/A Computer: COMPUTER-02 Description: A process serving application pool 'DefaultAppPool' suffered a fatal communication error with the World Wide Web Publishing Service. The process id was '3724'. The data field contains the error number. Data: 0000: 6d 00 07 80 m..
I have also followed the advice of Microsoft's Support site without luck. The Network Service account didn't have any problems accessing the registry.
I need to run the site in IIS6 (instead of IIS Express 7.5) as the site runs ASP as well as ASP.NET I need the wildcard mapping for authentication in ASP.
I have completely run out of ideas, as the site was fine in ASP.NET 3.5 (CLR v2...), but this upgrade has completely messed up by debugging.
Any help will be much appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您将需要 WinDbg(Windows 调试工具)和 DebugDiag。
.load sos
!clrstack
无论如何,对我来说,您可以看到
Debugger.Launch()< /code> 就在顶部,你瞧,我的代码里有它。如果它是你的第一行代码,似乎 IIS 根本不喜欢这样!
You will need WinDbg (Debugging Tools for Windows) and DebugDiag.
.load sos
!clrstack
For me anyway, you can see that the
Debugger.Launch()
is right at the top, and low and behold, my code had it in. It seems that IIS doesn't like that at all if it is your first line of code!如果您不熟悉 WinDbg,您仍然可以从转储中提取大量信息。您已经拥有 DebugDiag 创建的转储。启动 VS,文件 ->打开->文件 (Ctrl + O),选择 .dmp 文件。 VS2010 将显示几个调试选项——混合模式或仅本机模式。选择混合模式,打开线程窗口,识别抛出异常的线程,查看调用堆栈。有时您会获取线程的局部变量,但不要过于依赖它,因为数据可能不正确。
If you are not familiar with WinDbg, you can still extract a lot of information from the dumps. You already have dumps created by DebugDiag. Launch VS, File -> Open -> File (Ctrl + O), select the .dmp file. VS2010 will than display couple of options to debug -- Mixed mode or Native Only. Choose Mixed mode, open threads window, identify thread that threw exception, look at the call stack. Sometimes you get to local variables for the thread, but don't count on that too much, as data might not be correct.