Problems starting IIS
IIS w3svc error
Problem Statement:
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 wasnt able 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 hhave spent a week researching this error but havnt found a solution yet.
Solution:
Well finally after a week struggle, i came to a solution. I am listing down the steps which i followed to solve my error
1- Confirm that "Windows Management Instrumentation" is started and its start up type is set to automatic.
2- Also make sure the following dependency services are started for World Wide Web Publishing Service.
Windows Process Activation Service, Remote Procedure Call (RPC), DCOM Server Process Launcher, RPC Endpoint Mapper.
3- 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
4- 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.
5- Type the below command in CMD and press enter
net start http
Now it will notify you that service is already running.
6- Re-install Internet information Service from "Turn windows feature on or off".
7- Start IIS and my websites are started now, no more "w3svc service is not running error."