Web 应用程序上的随机 COMException“句柄无效”
突然间,当我尝试使用 IIS 提供 Web 应用程序时,我在这台计算机上不断收到奇怪的 COMException。我以前从来没有遇到过这样的问题。
堆栈跟踪:
[COMException (0x80070006): The handle is invalid. (0x80070006 (E_HANDLE))] [FileLoadException] System.ServiceModel.Activation.HttpModule.ProcessRequest(Object sender, EventArgs e) +0 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
我该如何解决这个问题?我需要该服务器在今天晚些时候运行以进行演示。
我尝试过的事情:
- 在 IIS 中停止/启动
- aspnet_regiis -i
- restart
All of a sudden, I am consistently getting a weird COMException on this machine when I try serve a web app with IIS. I never used to have any problems with this.
Stack Trace:
[COMException (0x80070006): The handle is invalid. (0x80070006 (E_HANDLE))] [FileLoadException] System.ServiceModel.Activation.HttpModule.ProcessRequest(Object sender, EventArgs e) +0 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
How can I fix this? I need this server to be working later today for a demo.
Things I have tried:
- Stop/Start in IIS
- aspnet_regiis -i
- reboot
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它实际上不是 COM 错误,而是包含在 COM 错误代码中的 Windows 错误。这是一个非常低级的错误,从错误代码或堆栈跟踪中可以提取出很少的信息。当您用 Google 搜索该消息时,会出现大量点击,这是一个看起来不错的。如果这不合适,请务必自己寻找更多。
It is not actually a COM error, it is a Windows error, wrapped in a COM error code. It is a very low-level error, little can be distilled from the error code or the stack trace. There are plenty of hits when you Google the message, here's one that looks good. Be sure to find more yourself if that's not a good match.