This post has been republished via RSS; it originally appeared at: IIS Support Blog articles.
You may run into “Restart attempt failed” error while trying to restart IIS:
Restart attempt failed. The IIS Admin Service or the World Wide Web Publishing Service, or a service dependent on them failed to start.
IIS depends certain other services to host web applications. The root cause of this issue is a failed dependent service as the error above states. Check if the services below are running in IIS server:
- World Wide Web Publishing
- IIS Admin Service
- Net.Msmq Listener Adapter
- Net.Tcp Listener Adapter
- Net.Pipe Listener Adapter
- Net.Tcp Port Sharing Service
- Messaging Queuing
- W3SVC Service
In my case, Net.Msmq Listener Adapter service was not running. I saw this error when I tried starting it:
The message below was logged in Event Viewer,:
The Net.Msmq Listener Adapter service depends on the following service: msmq
MSMQ (Microsoft Message Queuing) is a messaging protocol that applications use to run on separate servers and processes. Net.Msmq Listener Adapter uses this protocol to receive activation requests. It then passes them to Windows Process Activation Service (WAS). For more details about this listener adapter and protocol, check out MSMQ Activation.
Follow the steps below to install Message Queuing.
- Go to “Server Manager > Manage > Add Roles and Features Wizard”
- Click “Next” until “Server Roles” section
- Select “Message Queuing”
- Click “Next” and “Install”
Once the installation is completed, start Net.Msmq Listener Adapter service again. It should start without issues. Then try iisreset again.