[英]Windows Process Activation Service Error 2:The system cannot find the file specified
IIS on my development computer stopped working.我的开发计算机上的 IIS 停止工作。 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.
我刚刚安装了 windows 10 (1803) 的最新更新,现在当我尝试启动“Windows Process Activation Service”时,出现“Windows 无法在本地计算机上启动 Windows Process Activation Service。错误 2:系统找不到指定的文件”错误。 Things I have already tried:
我已经尝试过的事情:
Not sure what to do next.不知道下一步该怎么做。
I have had this problem twice after a windows update.我在 Windows 更新后两次遇到此问题。 The issue seems to be, that windows adds an incorrect parameter to the WAS service startup parameters.
问题似乎是,Windows 向 WAS 服务启动参数添加了不正确的参数。 I fixed the issue using the following steps:
我使用以下步骤解决了这个问题:
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\ C:\Users\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys\
find these 3 Key-files...找到这 3 个密钥文件...
d6d986f09a1ee04e24c949879fdb506c_* d6d986f09a1ee04e24c949879fdb506c_*
76944fb33636aeddb9590521c2e8815a_* 76944fb33636aeddb9590521c2e8815a_*
6de9cb26d2b98c01ec4e9e8b34824aa2_* 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然后在 ACL 中为 SYSTEM 设置“完全控制”
After that: WPA can be started...之后:可以启动 WPA...
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
另请参阅此处的线程: https ://social.technet.microsoft.com/Forums/en-US/315841e1-b8b2-4084-8224-580ef3d13420/upgrade-to-windows-10-1709-iis-fails?forum=win10itprosetup
I had this same problem after installing the Windows 10 1909 update and the nanosetup variable was NOT in the registry.安装 Windows 10 1909 更新后我遇到了同样的问题,并且 nanosetup 变量不在注册表中。 I ended up doing a variation of Sascha's fix.
我最终做了一个 Sascha 修复的变体。
I took ownership and gave administrators full control of the MachineKeys folder in C:\ProgramData\Microsoft\Crypto\RSA.我取得了所有权,并让管理员完全控制了 C:\ProgramData\Microsoft\Crypto\RSA 中的 MachineKeys 文件夹。 Then I removed the 3 files in Machinekeys that begin with:
然后我删除了 Machinekeys 中以以下开头的 3 个文件:
d6d986f09a1ee04e24c949879fdb506c_* d6d986f09a1ee04e24c949879fdb506c_*
76944fb33636aeddb9590521c2e8815a_* 76944fb33636aeddb9590521c2e8815a_*
6de9cb26d2b98c01ec4e9e8b34824aa2_* 6de9cb26d2b98c01ec4e9e8b34824aa2_*
The Windows Process Activation Service (WAS) started as expected. Windows Process Activation Service (WAS) 按预期启动。
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,它只是一个简单的解决方案,您不需要重新安装 Windows 或删除更新,它对我有用,所以与大家分享,
I finally had to give up and rollback the windows build.我最终不得不放弃并回滚 Windows 构建。 To do this follow these steps:
为此,请按照下列步骤操作:
It rolled back to "1709" and now works fine.它回滚到“1709”,现在工作正常。
If you find yourself installing an application on a drive other than C:
and that application relies on IIS, the path for inetpub temporary files may be missing.如果您发现自己在
C:
以外的驱动器上安装应用程序并且该应用程序依赖于 IIS,则 inetpub 临时文件的路径可能会丢失。 Even if they are present on C:
, this may just confuse you into thinking they are present and thus not the issue.即使它们出现在
C:
上,这也可能会让您误以为它们存在,因此不是问题。
Create the following empty directory structure, replacing G:
with the drive letter that your application is installed to, other than C:
.创建以下空目录结构,将
G:
替换为您的应用程序安装到的驱动器号,而不是C:
。
G:\inetpub\temp\apppools
Then, start WAS, from an administrator command prompt:然后,从管理员命令提示符启动 WAS:
net start WAS
If this has to do with IIS, restart for good measure, from the same prompt:如果这与 IIS 有关,请从相同的提示重新启动以获得良好的效果:
IISRESET /restart
This solved my problem when installing a third party application.这解决了我安装第三方应用程序时的问题。
I received the same error after update, but on Windows Server 2022 Standard 21h2.更新后我收到了同样的错误,但是在 Windows Server 2022 Standard 21h2 上。 Tried all steps without success.
试了所有步骤都没有成功。 In my case WU deleted all params in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WAS\Parameters so i took it from old ControlSet002:
在我的例子中,WU 删除了 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WAS\Parameters 中的所有参数,所以我从旧的 ControlSet002 中获取了它:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WAS\Parameters]
"AccessDeniedMessage"="Error: Access is Denied."
"InstallPath"=hex(2):25,00,77,00,69,00,6e,00,64,00,69,00,72,00,25,00,5c,00,73,\
00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,69,00,6e,00,65,00,74,00,\
73,00,72,00,76,00,00,00
"MajorVersion"=dword:0000000a
"MinorVersion"=dword:00000000
"ServiceDll"=hex(2):25,00,77,00,69,00,6e,00,64,00,69,00,72,00,25,00,5c,00,73,\
00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,69,00,6e,00,65,00,74,00,\
73,00,72,00,76,00,5c,00,69,00,69,00,73,00,77,00,33,00,61,00,64,00,6d,00,2e,\
00,64,00,6c,00,6c,00,00,00
"GenerateKeys"=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WAS\Parameters\ListenerAdapters]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.