Cannot start service W3SVC on computer '.'

34

9

I just installed IIS7, but whenever I want to start it, the following error occurs:

Cannot start service W3SVC on computer '.'

What's wrong with it ?

I have Windows 7 64-bit build 7600 and have installed .NET Framework 3.5 SP1 and .NET Framework 4 before installing IIS7.

Mohammad Dayyan

Posted 2010-08-16T19:08:40.057

Reputation: 1 543

Does the Event Log have anything to add to the error?

This thread may help: http://forums.iis.net/t/1151484.aspx

– BillP3rd – 2010-08-16T20:23:35.567

Answers

19

I found the solution:

  1. Run -> appwiz.cpl -> Turn windows features on or off -> Uncheck "Internet Information Services" and "Windows Process Activation Service"

  2. Restart your machine.

  3. Run -> appwiz.cpl -> install both "Internet Information Services" and "Windows Process Activation Service"

Reference

Mohammad Dayyan

Posted 2010-08-16T19:08:40.057

Reputation: 1 543

1Where is "Internet Information Services" inside "Turn windows features on or off"> I can not find it. – Alvaro – 2015-06-16T09:53:40.997

no need to restart, kill the W3Svc process in the task manager as @Andy J stated – H A – 2017-02-23T01:36:00.700

1@Alvaro Goto Control Panel->Add And Remove Program & you see Turn windows features on or off – MIr Gulam Sarwar – 2017-04-22T03:51:29.497

28

Go to Task Manager --> Processes and manually stop the W3SVC process. After doing this the process should start normally when restarting IIS

Andy J

Posted 2010-08-16T19:08:40.057

Reputation: 281

It's w3wp.exe in my case. – yazanpro – 2016-05-19T22:15:12.767

My services list says W3SVC is "being terminated" ... for half an hour ... it doesn't allow me to perform any actions on it. – O. R. Mapper – 2016-08-16T10:22:55.417

Ok, solved this with the help of this answer, as described in my question/answer.

– O. R. Mapper – 2016-08-16T10:38:15.120

I go to task manager>service and find the W3SVC, then right click and "Go to process" and kill the svchost highlighted. then iisreset. It works without restart. – Sharon – 2017-03-10T13:40:57.740

6It's svchost, so go to Services, Right-Click, Go To Process to find the right svchost to terminate. – Travis Watson – 2013-08-21T17:26:28.527

3This is a better solution and doesn't need restart. – nima – 2013-10-10T21:09:14.683

12

I came across the same problem. It got solved with following steps:

  1. Go to admin dos command prompt --
  2. (Ctrl+x) will give the option to go to admin dos prompt
  3. use command "iisreset"

This will solve the problem.

Thanks, Narendra.

narendra kuvalekar

Posted 2010-08-16T19:08:40.057

Reputation: 121

7

This commonly occurs when port 80 is being used by something else. If this is a dev box, do you also have Apache or Skype installed? These are a common culprit.

You can check if port 80 is in use by running netstat -ab|find "80" in an elevated command prompt. This may take a minute or two to run depending on what network activity is occurring on your PC.

MDMarra

Posted 2010-08-16T19:08:40.057

Reputation: 19 580

Thanks for the reply, I've done what you said and this is the result : http://www.picfront.org/d/7Mdg

– Mohammad Dayyan – 2010-08-16T19:32:49.260

BTW: I've been installed Apache and Mysql via XAMPP on my system before installing IIS7. – Mohammad Dayyan – 2010-08-16T19:34:22.580

It doesn't look like anything is running on port 80 there. What does your event log say? – MDMarra – 2010-08-16T19:51:11.027

How should I check event logs? – Mohammad Dayyan – 2010-08-17T00:38:02.087

@Mohammad - Perhaps this question is better suited for superuser.com – MDMarra – 2010-08-17T00:52:52.567

@MarkM - I've done it before ;-) http://superuser.com/questions/176520/cannot-start-service-w3svc-on-computer

– Mohammad Dayyan – 2010-08-17T00:55:34.323

@Mohammad - It's not good form to post the same question in both places. This site is for professional systems administrators. SU is for the power user type. The same question generally doesn't belong in both places. – MDMarra – 2010-08-17T00:58:37.060

5

A bit different from Mohammad's solution:

  1. Run -> appwiz.cpl -> Turn windows features on or off -> Check "Windows Process Activation Service"

  2. That's all.

It solved my problem.

pradip

Posted 2010-08-16T19:08:40.057

Reputation: 51

Didn't work for me. – Randell – 2017-06-05T01:18:52.877

1This actually didn't work for me but Mohammad's did. Just sayin' – Vazgen – 2012-12-23T20:19:28.267

This worked once I manually started the service after installation. No reboot required. – kampsj – 2014-03-17T14:20:18.880

5

  1. Go to services.msc
  2. Check World Wide Web Publishing Service.
  3. If disabled, right-click change the Startup type to Automatic.
  4. Start the service.

Srivasta

Posted 2010-08-16T19:08:40.057

Reputation: 51

3

The solution to this issue was different for me.

After following the solutions to check that the Window Features where there I was still having the same problem.

The error message was the same and I noticed the Windows Service "World Wide Web Publishing Service" which was set to automatic was not started.

This service was dependent on "Windows Process Activation Service" (You can check dependent services by right clicking > properties > dependent tab)

I received a file/assembly missing error when I tried to manually start "Windows Process Activation Service". According to this blog the apppools folder had gone missing. Like the author of that page I have no idea what caused it to disappear...security software?

I added the directory c:\inetpub\temp\apppools and started the services in the correct order. Both are now set to automatic and all work fine.

sealz

Posted 2010-08-16T19:08:40.057

Reputation: 2 034

This is actually the only solution which worked for me! And yes it all worked before, but needed to disable the services for Xamp. – Henk-Martijn – 2016-05-17T14:48:13.123

3

I had this issue because I forgot I was debugging the w3svc process in Visual Studio when working on a website, and I was paused at a breakpoint. :P

Matthew Steven Monkan

Posted 2010-08-16T19:08:40.057

Reputation: 131

1

You should check to see that all of the following services are started, or at the very least, not disabled: HTTP, Windows Process Activation Service, DCOM Process Launcher, and RPC Endpoint Mapper.

You should also verify t hat no other process is listening on port 80. The simplest way to do this is to issue the following in a command window:

netstat -a -o|findstr 80

BillP3rd

Posted 2010-08-16T19:08:40.057

Reputation: 5 353

With the default settings Skype also uses ports 80 and 443 as an alternative for incoming connections. Check whether this is enabled in the advanced->connection settings if you have installed Skype. – Andreas – 2010-08-16T21:05:09.773

1

I've checked port 80 via the command that you wrote , this is the result => http://www.picfront.org/d/7Mdg

– Mohammad Dayyan – 2010-08-17T00:34:52.407

1BTW, I don't have Skype – Mohammad Dayyan – 2010-08-17T00:35:29.970

1

I've checked the services that you wrote, I don't have a service with HTTP name. DCOM Process Launcher and RPC Endpoint Mapper are started but Windows Process Activation Service is in Manual mode and it didn't start. When I wanted to start it this error has occurred : http://www.picfront.org/d/7MeM

– Mohammad Dayyan – 2010-08-17T00:41:59.127

1

This should help: http://www.hanselman.com/blog/FixedWindowsProcessActivationServiceWASIsStoppingBecauseItEncounteredAnError.aspx The short answer is to check for a folder called C:\inetpub\temp\appPools. If it doesn't exist, create it.

Also: http://technet.microsoft.com/en-us/library/cc734935(WS.10).aspx

– BillP3rd – 2010-08-17T03:01:54.470

1

I was having the same issue, and followed all the steps described here.... However, nothing seems to worked.

The error in the event manager I was getting while trying to run "Windows Process Activation Service" service manually was stating that http service was not found or disabled. Moreover, we were not able to find http service in services list.. so wasn't sure how to enable it.

Here is the error I was getting

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.

Finally I got it fixed using following command in command prompt.

sc config http start= auto

Then, just started "Windows Process Activation Service" and IIS is now running fine.

Credit goes to the original answer given here: How to re-install http windows service by MajidTaheri

Hoping this helps someone with the same issue...

Krunal

Posted 2010-08-16T19:08:40.057

Reputation: 111

0

After upgrading from Server 2010 to 2012 R2 I had the same issue. I followed the advice above with the additional steps.

From elevated command prompt:

sc config http start = auto
net start w3svc

Refreshed the WSUS website in IIS manager and restarted and things were good.

Matt

Posted 2010-08-16T19:08:40.057

Reputation: 1

0

I had a similar issue. In my case, World Wide Web Publushing Service (W3SVC) service was disabled. Run services.msc, right-click on World Wide Web Publushing Service, then click Properties and select "Automatic" as startup type. Now start IIS again.

ivorytux

Posted 2010-08-16T19:08:40.057

Reputation: 1

0

Just rebooted the server. It was fine then. The service was stuck trying to come down after I made some IIS changes.

jim

Posted 2010-08-16T19:08:40.057

Reputation: 1