error : Can’t start service W3SVC on computer ‘.’.

this error occured when i tried to start IIS


Solution :
Just make sure World Wide Web Publishing Service and IIS Admin Service already turned on


Restart IIS command prompt

To restart IIS using the IISReset command-line utility
1.From the Start menu, click Run.
2.In the Open box, type cmd, and click OK.
3.At the command prompt, type iisreset /noforce computername, and press ENTER.
4.IIS attempts to stop all services before restarting. The IISReset command-line utility waits up to one minute for all services to stop. If the services cannot be stopped within one minute, all IIS services are terminated, and IIS restarts.

example :

source :