Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows Process Activation Service Error 2:The system cannot find the file specified

Tags:

asp.net

iis

iis-8

IIS on my development computer stopped working. I just installed the latest update to windows 10 (1803) and now when I try to start the "Windows Process Activation Service" I get an "Windows could not start the Windows Process Activation Service on Local computer. Error 2: The System cannot find the file specified" error. Things I have already tried:

  • Reinstalled IIS and Windows Process Activation Service, several times
  • I verified that I do have a "C:\inetpub\temp\appPools" folder

Not sure what to do next.

like image 752
Eric Avatar asked May 10 '18 23:05

Eric


4 Answers

I have had this problem twice after a windows update. The issue seems to be, that windows adds an incorrect parameter to the WAS service startup parameters. I fixed the issue using the following steps:

  • Start regedit (just type it into start)
  • Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WAS\Parameters
  • Delete the NanoSetup variable. This variable is preventing WAS from starting
  • Start the WAS service using task manager or by typing "net start WAS" in Command Prompt
  • Start the W3SVC service the same way
  • You can now start your website in IIS again
like image 127
Alexander Bang Avatar answered Nov 16 '22 07:11

Alexander Bang


I had the same problem and nothing in here was the solution for me for a long time. So i rolled back windows also. Today i found the solution working for me - Navigate to:

C:\Users\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys\

find these 3 Key-files...

d6d986f09a1ee04e24c949879fdb506c_*

76944fb33636aeddb9590521c2e8815a_*

6de9cb26d2b98c01ec4e9e8b34824aa2_*

... then in Security-Settings:

  • first, you have to set your User as OWNER

  • close Properties Dialog - and open again

  • Then in ACL set "full controll" for SYSTEM

After that: WPA can be started...

Hope this helps; see also thread here: https://social.technet.microsoft.com/Forums/en-US/315841e1-b8b2-4084-8224-580ef3d13420/upgrade-to-windows-10-1709-iis-fails?forum=win10itprosetup

like image 35
Sascha Avatar answered Nov 16 '22 07:11

Sascha


I had this same problem after installing the Windows 10 1909 update and the nanosetup variable was NOT in the registry. I ended up doing a variation of Sascha's fix.

I took ownership and gave administrators full control of the MachineKeys folder in C:\ProgramData\Microsoft\Crypto\RSA. Then I removed the 3 files in Machinekeys that begin with:

d6d986f09a1ee04e24c949879fdb506c_*

76944fb33636aeddb9590521c2e8815a_*

6de9cb26d2b98c01ec4e9e8b34824aa2_*

The Windows Process Activation Service (WAS) started as expected.

like image 4
J77 Avatar answered Nov 16 '22 06:11

J77


It just has a simple solution, you don't need to reinstall Windows or removing updates, It worked for me so sharing it with all of you,

  1. if you already using IIS and have site's configurations and files in C:\windows\system32\inetsrv\config and C:\inetpub\wwwroot, Back up all files from the folder C:\windows\system32\inetsrv\config and C:\inetpub\wwwroot, if you are installing ISS for the first time then you don't need to have a back up.
  2. On Taskbar right-click on Start button select 'Run', type appwiz.cpl hit Enter.Click on 'Turn Windows features on or off'.
  3. Uncheck 'Internet Information Services' and 'Windows Process Activation Service' click OK button.
  4. After restarting Windows, Delete 'inetpub' folder on C: drive.
  5. Open 'Turn Windows features on or off window' again.
  6. Check 'Internet Information Services' and 'Windows Process Activation Service' click OK button.
  7. After restarting Windows open folder C:\windows\system32\inetsrv\config.
  8. Right click on the file named 'applicationHost' Select Open with Notepad.
  9. In Notepad, Copy all the content of the file.
  10. Select New in File Menu and Paste all the content in the new file.
  11. Save this file in C:\windows\system32\inetsrv\config with the name 'applicationHost.config.tmp', Don't forget choosing 'All Files' in the 'Save as type' box.
  12. Otherwise, file will be saved as applicationHost.config.tmp.txt which will not work.
  13. Type 'Services.msc' in Run, Find 'Windows Process Activation Service' in Services window.
  14. Watch running the service successfully without any errors after clicking on start.
like image 2
Wise Guy Avatar answered Nov 16 '22 06:11

Wise Guy