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.

link|improve this question

Does the Event Log have anything to add to the error? This thread may help: forums.iis.net/t/1151484.aspx – BillP3rd Aug 16 '10 at 20:23
feedback

5 Answers

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.

link|improve this answer
Thanks for the reply, I've done what you said and this is the result : picfront.org/d/7Mdg – Mohammad Aug 16 '10 at 19:32
BTW: I've been installed Apache and Mysql via XAMPP on my system before installing IIS7. – Mohammad Aug 16 '10 at 19:34
It doesn't look like anything is running on port 80 there. What does your event log say? – MDMarra Aug 16 '10 at 19:51
How should I check event logs? – Mohammad Aug 17 '10 at 0:38
@Mohammad - Perhaps this question is better suited for superuser.com – MDMarra Aug 17 '10 at 0:52
show 2 more comments
feedback
up vote 2 down vote accepted

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

link|improve this answer
feedback

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

link|improve this answer
feedback

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.

link|improve this answer
feedback

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
link|improve this answer
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 Aug 16 '10 at 21:05
I've checked port 80 via the command that you wrote , this is the result => picfront.org/d/7Mdg – Mohammad Aug 17 '10 at 0:34
BTW, I don't have Skype – Mohammad Aug 17 '10 at 0:35
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 : picfront.org/d/7MeM – Mohammad Aug 17 '10 at 0:41
This should help: hanselman.com/blog/… The short answer is to check for a folder called C:\inetpub\temp\appPools. If it doesn't exist, create it. Also: technet.microsoft.com/en-us/library/cc734935(WS.10).aspx – BillP3rd Aug 17 '10 at 3:01
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.