诊断IIS关闭

时间:2010-05-20 15:33:10

标签: iis iis-7 application-shutdown

症状:

  • 我附加了一个调试器,我等了一会儿,它会自动分离
  • 我在正常操作期间观察事件日志 - 在单个请求进入后,它等待一点,关闭

Disagnosing。我已按照以下步骤记录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

但它没有用,因为mysetery错误并没有告诉我什么。我看到了与之前添加额外日志记录相同的事情:

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

任何人都有更多调试的想法吗?

2 个答案:

答案 0 :(得分:0)

嗯,事实证明,IIS不知何故设置为每分钟回收池 - 当然不是通常的配置。 (我认为这是一个恶作剧。)我离开了这个,所以任何搜索错误信息的人都可能找到帮助他们的东西。

答案 1 :(得分:0)