I'm trying to test a WCF project that I've published which was created in VB.NET. When I go into IIS manager and try to start the website, it says
Websites cannot be started unless both the Windows Activation Service (WAS) and the World Wide Web Publishing Service (W3SVC) are running. Both services are currently stopped.
So to fix this, I've gone into 'Services' and scrolled down to 'World Wide Web Publishing Service' which isn't currently running. I tried to start this and was then presented with another message
Windows could not start the World Wide Web Publishing Service service on local computer. Error 1068: The dependency service or group failed to start
When looking in the properties, the dependencies branched out as follows
When looking back in services, all of these were running except one.
The only one which isn't running is Windows Process Activation Service
When I try to start this service it says
Windows could not start the Windows Process Activation Service service on Local Computer
Error 2: The system cannot find the file specified
How can I start these services so that I can start my website in inetmgr
?
EDIT
I am using Windows 10 64-bit. My IIS version I'm not sure of, but based on a quick Google search I'd imagine it's version 8 or higher.
Best Answer
It seems that people experience this problem from time to time and in particular after Windows Updates are installed due to a registry key that's added to the registry which seems to cause problems.
According to the answer on the post Windows Process Activation Service Error 2:The system cannot find the file specified, you can simple delete a specific registry key and then restart the service to resolve.
Furthermore, this fix above and additional fixes are listed in the IIS won't start after upgrade to 1803 - WAS fails with Error 2 - "Cannot find the file specified" and Upgrade to Windows 10 1709: IIS fails. posts so it'd be worth a read over thoses threads if you continue to have problem for further troubleshooting steps.
Further Resources