iis - WAS 服务器 - 事件查看器错误和 IIS 日志错误
问题描述
我正在尝试启动 WAS 服务,但我从事件查看器中收到此错误。
Windows Process Activation Service (WAS) is stopping because it encountered an error. The data field contains the error number.
然后我从 iis.log 文件中检查了错误
[04/21/2020 11:31:00] [ ***** IIS 10.0 Component Based Setup ***** ]
[04/21/2020 11:31:00] .\inetsrv\iissetup.exe /keygen
[04/21/2020 11:31:00] Created NetFrameworkConfigurationKey key containter
[04/21/2020 11:31:00] Created NetFrameworkConfigurationKey user key
[04/21/2020 11:31:00] Set ACLs on NetFrameworkConfigurationKey
[04/21/2020 11:31:00] Failed to create iisCngConfigurationKey key container (result=0x80090009)
[04/21/2020 11:31:00] < !!FAIL!! > Failed to create the iisCngConfigurationKey key container (result=0x80090009)
[04/21/2020 11:31:00] < !!FAIL!! > Generating IIS CNG Configuration Key Container (result=0x80090009)
[04/21/2020 11:31:00] < !!FAIL!! > Key Generation result=0x80090009
[04/21/2020 11:31:00] [ End of IIS 10.0 Component Based Setup ]
我去了我的 RSA 机器密钥文件夹:C:\Users\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys
我知道我应该备份并删除三个旧的 RSA 机器密钥 (1) NetFrameworkConfigurationKey
(2) iisWasKey
(3) iisConfigurationKey
,但是我只能NetFrameworkConfigurationKey
在我备份并删除文件的 RSA 文件夹中找到。
这就是为什么您可以在 iis.log 中看到它已经创建NetFrameworkConfigurationKey
但没有 iisWasKey
也没有的错误 iisConfigurationKey
我在我的 RSA 文件夹中查看的内容仅包含两个文件,它们是 NetFrameworkConfigurationKey (d6d986f09a1ee04e24c949879fdb506c_)和另一个我不知道它是什么的文件 (5402d5bd55de56397226e45a085a4bbc_)
我在我的 RSA 文件夹中找不到包含 (76944fb33636aeddb9590521c2e8815a_) 的 iisWasKey 文件和包含 (6de9cb26d2b98c01ec4e9e8b34824aa2_) 的 iisConfigureationKey 文件。
他们是在其他地方还是我应该导入其余的密钥?
谢谢
解决方案
尝试以下命令
reg delete HKLM\SYSTEM\CurrentControlSet\Services\WAS\Parameters /v GenerateKeys /f
net start w3svc
这允许重新生成密钥,然后可以启动 IIS AppPools。
推荐阅读
- javascript - 带有 Bluebeam 的 JavaScript 库
- python - 从 api 请求中获取模型对象
- scala - 如果一个数据结构是可折叠的,它是一个幺半群吗?
- angularjs - 在angularjs中的子指令中访问父范围
- plot - 如何在 Octave 中设置用户定义的颜色图?
- ios - 升级 SDK 后,使用 Facebook 登录在 iOS 11 上没有响应
- c# - 解析具有不同内容的 JSON 响应
- ios - 如何从 url 制作模型、视图模型
- android - 如何在 Android 中使用 SQLcipher 数据库保护 Greendao 使用的密码?
- git - 如何找到将文件更改为当前状态的 Git 提交?