诊断IIS关闭

诊断IIS关闭,iis,iis-7,application-shutdown,Iis,Iis 7,Application Shutdown,症状: 我附加了一个调试器,我等了一会儿,它会自动分离 在正常操作期间,我会查看事件日志——在收到一个请求后,它会等待一段时间,然后关闭 否认。我按照以下步骤记录IIS中的关闭: 我知道这些是有效的,因为 更改web.config时在事件日志中看到的内容: The description for Event ID 0 from source ASP.NET 2.0.50727.0 cannot be found. Either the component that raises th

症状:

  • 我附加了一个调试器,我等了一会儿,它会自动分离
  • 在正常操作期间,我会查看事件日志——在收到一个请求后,它会等待一段时间,然后关闭
否认。我按照以下步骤记录IIS中的关闭:

我知道这些是有效的,因为

更改web.config时在事件日志中看到的内容:

The description for Event ID 0 from source ASP.NET 2.0.50727.0 cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer. If the event originated on another computer, the display information had to be saved with the event. The following information was included with the event: _shutdownMessage=IIS configuration change HostingEnvironment initiated shutdown CONFIG change CONFIG change HostingEnvironment caused shutdown _shutdownStack= at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at System.Environment.get_StackTrace() at System.Web.Hosting.HostingEnvironment.InitiateShutdownInternal() at System.Web.Hosting.HostingEnvironment.InitiateShutdown() at System.Web.Hosting.PipelineRuntime.StopProcessing() the message resource is present but the message is not found in the string/message table 找不到源ASP.NET 2.0.50727.0中事件ID 0的说明。引发此事件的组件未安装在本地计算机上,或者安装已损坏。您可以在本地计算机上安装或修复该组件。 如果事件起源于另一台计算机,则显示信息必须与事件一起保存。 本次活动包括以下信息: _shutdownMessage=IIS配置更改 主机环境已启动关机 配置更改 配置更改 主机环境导致关机 _shutdownStack=at System.Environment.GetStackTrace(异常e,布尔needFileInfo) 在System.Environment.get_StackTrace()中 在System.Web.Hosting.HostingEnvironment.InitiateHutdownInternal()上 在System.Web.Hosting.HostingEnvironment.InitiateShutdown()上 在System.Web.Hosting.PipelineRuntime.StoppProcessing()中 消息资源存在,但在字符串/消息表中找不到该消息 但这没有帮助,因为Mystery错误没有告诉我任何事情。我看到了与添加此额外日志之前相同的事情:

The description for Event ID 0 from source ASP.NET 2.0.50727.0 cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer. If the event originated on another computer, the display information had to be saved with the event. The following information was included with the event: _shutdownMessage=HostingEnvironment initiated shutdown HostingEnvironment caused shutdown _shutdownStack= at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at System.Environment.get_StackTrace() at System.Web.Hosting.HostingEnvironment.InitiateShutdownInternal() at System.Web.Hosting.HostingEnvironment.InitiateShutdown() at System.Web.Hosting.PipelineRuntime.StopProcessing() the message resource is present but the message is not found in the string/message table 找不到源ASP.NET 2.0.50727.0中事件ID 0的说明。引发此事件的组件未安装在本地计算机上,或者安装已损坏。您可以在本地计算机上安装或修复该组件。 如果事件起源于另一台计算机,则显示信息必须与事件一起保存。 本次活动包括以下信息: _shutdownMessage=主机环境启动关机 主机环境导致关机 _shutdownStack=at System.Environment.GetStackTrace(异常e,布尔needFileInfo) 在System.Environment.get_StackTrace()中 在System.Web.Hosting.HostingEnvironment.InitiateHutdownInternal()上 在System.Web.Hosting.HostingEnvironment.InitiateShutdown()上 在System.Web.Hosting.PipelineRuntime.StoppProcessing()中 消息资源存在,但在字符串/消息表中找不到该消息
有人对更多的调试有什么想法吗?

好吧,事实证明IIS以某种方式设置为每分钟循环一次池-当然不是通常的配置。(我认为这是一个恶作剧。)我把这件事留给谷歌,这样任何人只要在谷歌上搜索错误信息,都会发现一些对他们有帮助的东西。

这里有一个很好的参考:

您还可以使用DebugDiag:

DebugDiag是MS支持部门让您生成报告供其检查的工具