Reputation: 2337
I am trying to start my website in IIS, whenever I try to start my website I get the following error
Cannot start service w3svc on computer
I tried to start "World wide web publishing service", but I was unable to start it as it said:
Error 1068: The dependency service or group failed to start
Meanwhile when I checked my log I found this error,
The World Wide Web Publishing Service service depends on the HTTP service which failed to start because of the following error:
The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.
Please help me, I am badly caught with this error, I have spent a week researching this error but haven't found a solution yet.
Upvotes: 37
Views: 144724
Reputation: 1
For me IISWorker Process was running in the background. Open Task Manager and killed the process. It worked
Upvotes: 0
Reputation: 107
I was getting this error. It turns out World Wide Web Publishing Service was disabled.
Upvotes: 0
Reputation: 51
I managed to solve after:
Upvotes: 0
Reputation: 11
I am able to resolve this by simply executing the below command in PowerShell to kill/stop service and restart the IIS server
taskkill /F /FI "SERVICES eq w3svc"
Upvotes: 1
Reputation: 119
My Net.Tcp Port Sharing Service was disabled. I changed its startup to manual, started the service, and then IISRESET worked.
I also verified that the following dependent services were started in Services ([windows]+[r] services.msc):
I found this solution by going through all dependencies and child dependencies of the World Wide Web Publishing Service and making sure that each service was enabled and started.
To verify all services for yourself, do the following:
Service Properties - Dependencies Tab
Upvotes: 1
Reputation: 2337
Confirm that "Windows Management Instrumentation" is started and its start up type is set to automatic
.
Also make sure the following dependency services are started for World Wide Web Publishing Service:
Open regedit, navigate to [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP]
:
a) Double click on Start
and change value data from 4
(disabled) to 3
(automatically).
b) Delete "NoRun"
key if this key exists.
(warning: backup any IIS website configuration first). UN-install "Internet information Service" and "Windows process activation service(if it is already installed)" from "Turn windows feature on or off" and Restart your PC.
Type the below command in CMD and press enter:
net start http
Now it will notify you that service is already running.
Re-install Internet information Service from "Turn windows feature on or off".
Start IIS and my websites are started now, no more "w3svc service is not running error."
Upvotes: 44
Reputation: 1585
In my case, IIS suddenly stopped working, and after that Windows process activation service was unable to restart.
The solution to fix this was:
Upvotes: 1
Reputation: 458
I have had this problem after a windows update. Windows Process Activation Service is dependent service for W3SVC. First, make sure that Windows Process Activation Service is running. In my case, it was not running and when I tried to run it manually, I got below error.
Windows Process Activation Service Error 2: The system cannot find the file specified
The issue seems to be, that windows adds an incorrect parameter to the WAS service startup parameters. I fixed the issue using the following steps:
Start regedit (just type it into start) Navigate to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WAS\Parameters
Delete the NanoSetup variable. This variable is preventing WAS from starting
Start the WAS service using task manager
Now start the W3SVC service
You can now start your website in IIS again
I found above WPA service solution in this stack overflow thread.
Upvotes: 1
Reputation: 11
I have got same issue on my server. Follow below steps -
It works and solved my problem.
Upvotes: 1
Reputation: 485
Go to Task Manager --> Processes and manually stop the W3SVC process. After doing this the process should start normally when restarting IIS
Upvotes: 4
Reputation: 1379
This is probably a rarer case, but...
If you are using a custom AppPool Identity configuration be sure to check the AppPool is running. It may be turned off because credentials are invalid (usually due to an expired password). Update your credentials and start the AppPool.
Upvotes: 0
Reputation: 407
In my case it was C:\Windows\System32\inetsrv\config\applicationHost.config which had an issue. I had a "system.web" section in this file which was causing the problem. Removed the section and everything started working
Upvotes: 1
Reputation: 179
Make sure these 2 services running and their startup type is automatic.If they disabled and not running right click on them and go to properties and change from there.
Upvotes: 7