Windows进程激活服务(WAS)将不再在我的Windows 10 PC上启动。结果,IIS无法启动。我不太确定它何时发生,但可能在上个月。
在启动期间,我现在在系统日志中收到一系列4个错误事件:
WAS 5215:Windows进程激活服务(WAS)无法执行脱机安装程序的初始化。数据字段包含错误号。[数据字段:50000780]
WAS 5005:Windows进程激活服务(WAS)由于遇到错误而正在停止。数据字段包含错误号。[数据字段:50000780]
服务控制管理器7023:WAS服务终止,出现以下错误:文件存在。
服务控制管理器7001:W3SVC服务依赖于WAS服务,该服务由于以下错误而无法启动:该文件存在。
由于文件存在错误,我对这种类型的错误的引用不多。
(我尝试使用ProcMon尝试识别它所指的文件,但它绝对拒绝运行。)
编辑...终于使ProcMon可以正常工作(使用VS2017提取64位版本后)。原来,导致上述问题的文件是该C:\Windows\System32\inetsrv\Config
文件夹中的“ applicationhost.config.tmp”文件。删除该文件使该过程可以继续进行。
现在,第一个和第三个错误是:
WAS 5215:Windows进程激活服务(WAS)无法执行脱机安装程序的初始化。数据字段包含错误号。[数据字段:0D000780]
服务控制管理器7023:Windows进程激活服务服务终止,出现以下错误:数据无效。
根据Yanbing Shi的回答,这是iis.log
文件中的最新行:
[01/13/2018 23:10:41] [ ***** IIS 10.0 Component Based Setup ***** ]
[01/13/2018 23:10:41] .\inetsrv\iissetup.exe /install SharedLibraries /nano
[01/13/2018 23:10:41] Setting Installation Type to Nano
[01/13/2018 23:10:41] Successfully added IIS_IUSRS ACE to DACL at %ProgramData%\Microsoft\Windows\WER\ReportQueue.
[01/13/2018 23:10:42] < !!FAIL!! > Failed to create the NetFrameworkConfigurationKey key container (result=0x8009000f)
[01/13/2018 23:10:42] < !!FAIL!! > Install of component SharedLibraries result=0x8009000f
[01/13/2018 23:10:42] < !!FAIL!! > COMPONENT::ExecuteCommand result=0x8009000f
[01/13/2018 23:10:42] [ End of IIS 10.0 Component Based Setup ]
为了回应史彦兵的下一个答案 ...
起初,我无法查看/编辑/删除d6d986f09a1ee04e24c949879fdb506c_*
文件。当我尝试查看其权限时,收到消息:You do not have permission to view this object's security properties, even as an administrative user.
但是,我可以将所有权更改为“管理员”,然后将该组Full
授予该权限,然后可以查看它。该文件不是文本文件,但约占28个字节NetFrameworkConfigurationKey
。我将文件移出了该文件夹。
然后我跑net start was
了System error 80 has occurred. The file exists.
没有添加任何iis.log
文件,但通常的错误事件已添加到系统事件日志中。
然后,我手动删除了applicationhost.config.tmp
文件并运行net start was
。这次,我得到了System error 13 has occurred. The data is invalid.
这次,有新条目要 iis.log
[03/18/2018 07:44:54] [ ***** IIS 10.0 Component Based Setup ***** ]
[03/18/2018 07:44:54] .\inetsrv\iissetup.exe /install SharedLibraries /nano
[03/18/2018 07:44:54] Setting Installation Type to Nano
[03/18/2018 07:44:55] Successfully added IIS_IUSRS ACE to DACL at %ProgramData%\Microsoft\Windows\WER\ReportQueue.
[03/18/2018 07:44:55] Created NetFrameworkConfigurationKey key containter
[03/18/2018 07:44:56] Created NetFrameworkConfigurationKey user key
[03/18/2018 07:44:56] Set ACLs on NetFrameworkConfigurationKey
[03/18/2018 07:44:56] < !!FAIL!! > Failed to create the iisWasKey key container (result=0x8009000f)
[03/18/2018 07:44:56] < !!FAIL!! > Install of component SharedLibraries result=0x8009000f
[03/18/2018 07:44:56] < !!FAIL!! > COMPONENT::ExecuteCommand result=0x8009000f
[03/18/2018 07:44:56] [ End of IIS 10.0 Component Based Setup ]