必须运行两次IISRESET才能启动所有与IIS相关的服务

好像当我从命令提示符执行IISRESET时,约90%的时间出现重新启动错误。 在Win 2008上运行IIS7。但是我已经看到了与IIS6和Win2003相同的事情。 第二次运行IISRESET似乎开始了一切,或者我可以手动重新启动 – 但我很好奇,如果我可以使它与一个IISRESET一致工作。

Attempting stop... Internet services successfully stopped Attempting start... Restart attempt failed. The IIS Admin Service or the World Wide Web Publishing Service, or a service dep endent on them failed to start. The service, or dependent services, may had an error during its startup or may be disabled. C:\Users\btinstall>iisreset Attempting stop... Internet services successfully stopped Attempting start... Internet services successfully restarted 

该消息说:“服务,或依赖服务,可能在启动过程中有错误或可能被禁用。 这可能发生在IIS 7 / 7.5中,因为WAS(Windows进程激活服务)可能需要一些时间才能刷新。

确保您的IIS相关服务成功重新启动的最佳方法是使用“net stop W3SVC”和“net start W3SVC”作为pipe理员。

有趣的是,你的服务器有多less个网站? IISReset第一次和第二次需要多长时间? (这可能是MSFT可以在IISReset中修复的情况,用于WAS需要很长时间才能启动的情况。)

随意在IIS.NET论坛中转储这个,所以产品团队可以看看。 这里是链接: http : //forums.iis.net/default.aspx?GroupID=41