该服务目前无法接受控制消息

问题描述:

我刚刚在IIS中停止了一个应用程序池.尝试启动它时,IIS抱怨说,

I just stopped an Application Pool in IIS. When trying to start it, IIS complains that,

该服务目前无法接受控制消息.(来自HRESULT的异常:0x80080425).

The service cannot accept control messages at this time. (Exception from HRESULT: 0x80080425).

有什么用?何时出现此错误?

What gives? Whence did this error come?

查看事件查看器>系统显示以下警告:

Looking at the Event Viewer > System shows these warnings:

为应用程序池"MyAppPool"提供服务的工作进程"1456"未能在分配的时间内停止协议"http"的侦听器通道.数据字段包含错误号.

A worker process '1456' serving application pool 'MyAppPool' failed to stop a listener channel for protocol 'http' in the allotted time. The data field contains the error number.

为应用程序池"MyAppPool"提供服务的进程与Windows Process Activation Service发生致命的通信错误.进程ID为"10592".数据字段包含错误号.

A process serving application pool 'MyAppPool' suffered a fatal communication error with the Windows Process Activation Service. The process id was '10592'. The data field contains the error number.

在关闭期间,为应用程序池"MyAppPool"提供服务的进程超过了时间限制.进程ID为"10516".

A process serving application pool 'MyAppPool' exceeded time limits during shut down. The process id was '10516'.

大约5分钟后,此问题解决了,这时我们尝试重新启动网站,并收到:

This resolved itself after about 5-minutes, at which point we tried to restart the website, and received:

万维网发布服务(W3SVC)已停止.除非正在运行万维网发布服务(W3SVC),否则无法启动网站.

The World Wide Web Publish Service (W3SVC) is stopped. Web sites cannot be started unless the World Wide Web Publishing Service (W3SVC) is running.

因此,我们启动了W3SVC服务,然后就可以启动我们的网站了.

So, we started the W3SVC service, and then we could start our website.

这对我有帮助:只需等待一两分钟即可.

This helped me: just wait about a minute or two.

等待几分钟,然后重试操作.

Wait a few minutes, then retry your operation.

引用: https://msdn.microsoft.com/en-us/library/ms833805.aspx