Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
445 views
in Technique[技术] by (71.8m points)

windows - IIS w3svc error

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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_MACHINESYSTEMCurrentControlSetServicesHTTP]:
    a) Double click on Start and change value data from 4(disabled) to 3(automatically).
    b) Delete "NoRun" key if this key exists.

  4. (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.

  5. Type the below command in CMD and press enter:

    net start http
    

Now it will notify you that service is already running.

  1. Re-install Internet information Service from "Turn windows feature on or off".

  2. Start IIS and my websites are started now, no more "w3svc service is not running error."


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...