117

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

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:

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.

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.

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

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

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

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

binki
  • 7,754
  • 5
  • 64
  • 110
Shaun Luttin
  • 133,272
  • 81
  • 405
  • 467
  • 7
    Check Visual Studio , If debugger is attached and the process is in debugging mode.Or else go to Local Services and restart Credentials Manager. – Umara A. Zahid Dec 08 '16 at 05:59

12 Answers12

138

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

Wait a few minutes, then retry your operation.

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

user1412699
  • 1,846
  • 1
  • 13
  • 15
  • 28
    I'm a software developer, dealing with this often. I can't just wait a minute or two. – Daniel Hursan Nov 16 '20 at 13:56
  • 1
    Confirmed, I had waited a minute and was still getting that error, which made me nervous and brought me here. Just had to wait a couple minutes longer than I had. – neminem Apr 08 '21 at 15:42
54

The error message could result due to the following reason:

  1. The service associated with Credential Manager does not start.
  2. Some files associated with the application have gone corrupt.

Please follow the steps mentioned below to resolve the issue:

Method 1:

  1. Click on the “Start”
  2. In the text box that reads “Search Program and Files” type “Services”
  3. Right click on “Services” and select “Run as Administrator”
  4. In the Services Window, look for Credential Manager Service and “Stop” it.
  5. Restart the computer and “Start” the Credential Manager Service and set it to “Automatic”.
  6. Restart the computer and it should work fine.

Method 2: 1. Run System File Checker. Refer to the link mentioned below for additional information: http://support.microsoft.com/kb/929833

Serguei Fedorov
  • 7,763
  • 9
  • 63
  • 94
  • 10
    Method 1 worked for me on Windows 10. Did not need to restart the computer. – Zeeshan Sep 11 '16 at 05:00
  • 3
    Method 1 worked for me on Windows Server 2012 R2 without the need to restart the machine – Nick Mar 06 '17 at 12:33
  • 2
    Why would you need to stop one service (step 4) before stopping the whole OS (step 5)? In my case, simply restarting the Credential Manager was enough. – jpaugh May 09 '17 at 20:47
  • 3
    How is the Credential Manager related to IIS? (I am surprised to find that restarting the Credential Manager service did indeed allow me to start the app pool.) – jpaugh May 09 '17 at 20:48
27

In my case, the VS debugger was attached to the w3wp process. After detaching the debugger, I was able to restart the Application Pool

mcanti
  • 1,964
  • 2
  • 17
  • 14
27

I stopped the IIS Worker Process (in task manager), and then started the IIS again. It worked.

Zag Gol
  • 1,038
  • 1
  • 18
  • 43
14

I killed related w3wp.exe (on a friends' advise) at task manager and it worked.

Note: Use at your own risk. Be careful picking which one to kill.

Doruk
  • 884
  • 9
  • 25
6

Restarting the machine worked for me but not every time.

If you are really stuck on this then follow below steps

  1. Open Task Manager
  2. A window will open. Click on Details tab.
  3. Search for the process name you wanted to restart/stop.
  4. Select process, right click on it, select End task option.
  5. A confirmation dialog box will appear. Click on End process button.
  6. Now try to restart your service from Services.msc window.
Anki
  • 407
  • 3
  • 8
5

I forgot I had mine attached to Visual Studio debugger. Be sure to disconnect from there, and then wait a moment. Otherwise killing the process viewing the PID from the Worker Processes functionality of IIS manager will work too.

eaglei22
  • 2,589
  • 1
  • 38
  • 53
5

Restarting the IIS windows service (World Wide Web Publishing Service) and then starting the application pool has worked for me. However, as the top answer suggests it may have just been the waiting that caused it to subsequently work.

Francis Dean
  • 2,386
  • 2
  • 22
  • 29
5

I had this issue recently,

Problem statement: Mine was a windows service that I run locally by attaching VS debugger. When I stop debugging and try to restart/stop the service (under services.msc) I used to get the mentioned error.

Solution:

  1. Open up Task manager.
  2. Search for the service (based on the exe name and not service name, for those that are different).
  3. Kill the service.

On doing the above the service is stopped.

makil
  • 489
  • 2
  • 7
  • 19
2

Being impatient, I created a new App Pool with the same settings and used that.

Dunc
  • 18,404
  • 6
  • 86
  • 103
1

I kept having this problem whenever I tried to start an app pool more than once. Rather than rebooting, I simply run the Application Information Service. (Note: This service is set to run manually on my system, which may be the reason for the problem.) From its description, it seems obvious that it is somehow involved:

Facilitates the running of interactive applications with additional administrative privileges. If this service is stopped, users will be unable to launch applications with the additional administrative privileges they may require to perform desired user tasks.

Presumably, IIS manager (as well as most other processes running as an administrator) does not maintain admin privileges throughout the life of the process, but instead request admin rights from the Application Information service on a case-by-case basis.

Source: social.technech.microsoft.com

jpaugh
  • 6,634
  • 4
  • 38
  • 90
1

The debugger might be attached to w3wp.exe via "attach to process" making it unable to restart.