Windows Process Activation Service (WAS) will not start
Asked Answered
D

3

8

IIS 10 will not restart on my PC. When I navigate to localhost, I get a 'localhost refused to connect' message. After looking through the event viewer, it turns out that the issue is that the Windows Process Activation Service (WAS) will not start.

The error message given is:

'The Windows Process Activation Service (WAS) encountered an error while handling key generation. This will prevent WAS from starting corrently. The data field contains the error number.'

When I try to start the service manually from the services app, I get the following:

WAS error

Has anyone experienced this issue before? Any help would be greatly appreciated, I've been trawling the internet for several days trying to find a solution to no avail.

Differentiate answered 1/9, 2020 at 11:37 Comment(0)
T
30

We've run into this issue several times after recent Windows Updates. In all cases, the following worked (got from a Microsoft support rep):

Run the following from an admin Powershell prompt:

reg delete HKLM\SYSTEM\CurrentControlSet\Services\WAS\Parameters /v GenerateKeys /f
net start w3svc

The keys will be regenerated, then the IIS AppPools can be started

Traumatism answered 16/10, 2020 at 20:22 Comment(6)
Unfortunately I ended up reinstalling Windows 10 to resolve the issue. But thanks for your replyDifferentiate
thank you this have worked for me, i had the exact same problem, been looking forward to a solution.Drawback
After hours of searching, this fix worked for me, many thanks kind internet stranger.Krell
i run the first line, and finally WAS is stratedCecilius
I had the error WAS 5217. I tried to delete MachineKey files serverfault.com/questions/554788/… but that doesn't work. Using that commands fix my issueChlorite
Thank you! I had this notorious error 15 in Windows 2022 21H2 after an update and this is the only thing that worked!!Osbourne
W
1

According to your error message, WAS can not access the machine key when start up. Usually, machine keys are used to encrypt sensitive information in config file, WAS will not be able to start if there is no machine key to use.

The easiest and most common method is to try to uninstall and reinstall WAS.

If it still can not start, try to delete the registry entry NanoSet with cmd.

If the above two methods are useless, you can refer to this to delete machine keys, let WAS create new one while starting.

Wheelbase answered 2/9, 2020 at 2:52 Comment(2)
Thanks for the reply. Reinstalling WAS did not work. I searched for the NanoSet registry entry in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WAS\Parameters\ and it does not existDifferentiate
Then I suggest you delete the machine key. This method is used by most people and is a more effective method.Wheelbase
T
0

If somebody is still fighting with this issue, please check Event Viewer under System filter and check for any logs related to WAS. In my case I found the following entry:

The Windows Process Activation Service (WAS) encountered an error while handling key generation. This will prevent WAS from starting currently. The data field contains the error number.

So I just started again CNG Key Isolation service and everything is working now.

Tirol answered 28/10, 2021 at 7:52 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.