First of all I want to request you all not to mark this query as duplicate, as I tried to find out the problem but was unable to do so.
I already has IIS installed and was working fine but suddenly it stopped working. There was no installation of new software or removal of any software and service.
First I uninstalled the IIS by unchecking it from the Programs and Feature -> Turn windows feature on or off. Then again installed IIS and windows publishing service.
so, the boxes that are checked are Application development feature are:
- .net extensibility
- ASP
- ASP.NET
- ISAPI Extension
- ISAPI Filters
And the boxes that are checked under windows publishing service are :
- Process Models.
Then I restarted my system and then tried to start IIS server and I got this error.
Cannot start service W3SVC on computer '.'.
So, I searched the net and found that I should do
net stop w3svc
net stop IISAdmin
net start IISAdmin
net start w3svc
net start IISAdmin -- > the service name is invalid
net start w3svc --> the dependency service or group service failed to start
And even I did iisreset /restart then the output was:
Attempting stop...
Internet services successfully stopped
Attempting start...
Restart attempt failed.
The IIS Admin Service or the World Wide Web Publishing Service, or a service dependent on them failed to start. The service, or dependent services, may had an error during its startup or may be disabled.
Then I even didn't find IIS Admin in services.msc.
Guys, please help me out...
Let me know if you need any more information.
Thanks in advance.