简体   繁体   English

Windows Process Activation Service 错误2:系统找不到指定的文件

[英]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:我已经尝试过的事情:

  • Reinstalled IIS and Windows Process Activation Service, several times重装IIS和Windows Process Activation Service,多次
  • I verified that I do have a "C:\.netpub\temp\appPools" folder我确认我确实有一个“C:\.netpub\temp\appPools”文件夹

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:我使用以下步骤解决了这个问题:

  • Start regedit (just type it into start)启动 regedit(只需在 start 中输入)
  • Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WAS\Parameters导航到 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WAS\Parameters
  • Delete the NanoSetup variable.删除 NanoSetup 变量。 This variable is preventing WAS from starting此变量阻止 WAS 启动
  • Start the WAS service using task manager or by typing "net start WAS" in Command Prompt使用任务管理器或在命令提示符中键入“net start WAS”启动 WAS 服务
  • Start the W3SVC service the same way以同样的方式启动 W3SVC 服务
  • You can now start your website in IIS again您现在可以再次在 IIS 中启动您的网站

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 或删除更新,它对我有用,所以与大家分享,

  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.如果您已经在使用 IIS,并且站点的配置和文件位于 C:\windows\system32\inetsrv\config 和 C:\inetpub\wwwroot,请备份文件夹 C:\windows\system32\inetsrv\config 和 C: 中的所有文件: \inetpub\wwwroot,如果您是第一次安装 ISS,则不需要备份。
  2. On Taskbar right-click on Start button select 'Run', type appwiz.cpl hit Enter.Click on 'Turn Windows features on or off'.在任务栏上右键单击开始按钮选择“运行”,键入 appwiz.cpl 按 Enter。单击“打开或关闭 Windows 功能”。
  3. Uncheck 'Internet Information Services' and 'Windows Process Activation Service' click OK button.取消选中“Internet 信息服务”和“Windows 进程激活服务”,单击“确定”按钮。
  4. After restarting Windows, Delete 'inetpub' folder on C: drive.重新启动 Windows 后,删除 C: 驱动器上的“inetpub”文件夹。
  5. Open 'Turn Windows features on or off window' again.再次打开“打开或关闭 Windows 功能窗口”。
  6. Check 'Internet Information Services' and 'Windows Process Activation Service' click OK button.检查“Internet 信息服务”和“Windows 进程激活服务”,单击“确定”按钮。
  7. After restarting Windows open folder C:\windows\system32\inetsrv\config.重新启动 Windows 后打开文件夹 C:\windows\system32\inetsrv\config。
  8. Right click on the file named 'applicationHost' Select Open with Notepad.右键单击名为“applicationHost”的文件,选择使用记事本打开。
  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.将此文件保存在 C:\windows\system32\inetsrv\config 中,名称为“applicationHost.config.tmp”,不要忘记在“保存类型”框中选择“所有文件”。
  12. Otherwise, file will be saved as applicationHost.config.tmp.txt which will not work.否则,文件将被保存为 applicationHost.config.tmp.txt 这将不起作用。
  13. Type 'Services.msc' in Run, Find 'Windows Process Activation Service' in Services window.在“运行”中键入“Services.msc”,在“服务”窗口中找到“Windows Process Activation Service”。
  14. Watch running the service successfully without any errors after clicking on start.单击开始后,观看成功运行服务而没有任何错误。

I finally had to give up and rollback the windows build.我最终不得不放弃并回滚 Windows 构建。 To do this follow these steps:为此,请按照下列步骤操作:

  • Go to settings (Windows+I)转到设置 (Windows+I)
  • Click on "Update & Security"点击“更新和安全”
  • On the left click on "Recovery"在左侧点击“恢复”
  • Then under "Go back to the previous version of Windows 10" click "Get started"然后在“返回到以前版本的 Windows 10”下单击“开始”

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.

相关问题 Windows进程激活服务导致致命通信错误 - Fatal Communication Error with the Windows Process Activation Service 系统找不到Windows Server 2012中指定的文件 - The system cannot find the file specified in Windows Server 2012 “该系统找不到指定的文件” - "The system cannot find the file specified" imagemagick的文件路径? 获取“系统找不到文件指定的错误” - imagemagick file paths? Getting a 'The system cannot find the file specified error' rsa数据解密错误。系统找不到指定的文件 - rsa data decryption error.the system cannot find the file specified X509Certificate2 错误 - 系统找不到指定的文件 - X509Certificate2 Error - System cannot find the file specified Docker 运行给出“CreateProcess:Windows 系统调用失败:系统找不到指定的文件。(0x2)” - Docker run gives "CreateProcess: failure in a Windows system call: The system cannot find the file specified. (0x2)" IIS - “系统找不到指定的文件。” - IIS - “The system cannot find the file specified.” 流利的NHibernate:系统找不到指定的文件 - Fluent NHibernate: The system cannot find the file specified 系统找不到IIS服务器中指定的文件 - System cannot find the file specified in iis server
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM