The Windows Process Activation Service (WAS) will not start on my Windows 10 PC anymore. As a result, IIS won't start. I'm not quite sure when it happened, but likely in the last month.
During startup, I now get a series of 4 error events in the System log:
WAS 5215: The Windows Process Activation Service (WAS) failed to execute initialization for offline setup. The data field contains the error number. [Data field: 50000780]
WAS 5005: Windows Process Activation Service (WAS) is stopping because it encountered an error. The data field contains the error number. [Data field: 50000780]
Service Control Manager 7023: The WAS service terminated with the following error: The file exists.
Service Control Manager 7001: The W3SVC service depends on the WAS service which failed to start because of the following error: The file exists.
I've not many references to this type of error with the error the file exists.
(I've tried to use ProcMon to try to identify what file it is referring to, but it absolutely refuses to run.)
Edit... finally got ProcMon to work (after extracting the 64-bit version using VS2017). Turns out that the file that was cause the above problem was the "applicationhost.config.tmp" file in the C:\Windows\System32\inetsrv\Config
folder. Removing that file allowed the process to continue further.
Now, the first and third errors are:
WAS 5215: The Windows Process Activation Service (WAS) failed to execute initialization for offline setup. The data field contains the error number. [Data field: 0D000780]
Service Control Manager 7023: The Windows Process Activation Service service terminated with the following error: The data is invalid.
As per the answer by Yanbing Shi, here are the most recent lines from the iis.log
file:
[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 ]
In response to Yanbing Shi's next answer...
At first, I was unable to view/edit/delete the d6d986f09a1ee04e24c949879fdb506c_*
file. When I attempted to view its permission, I got the message: You do not have permission to view this object's security properties, even as an administrative user.
I was, however, able to change ownership to "Administrators" then give that groups Full
permission to it, and then I could view it. The file was not a text file but about 28 bytes into the file is NetFrameworkConfigurationKey
. I moved the file out of that folder.
I then ran net start was
and got System error 80 has occurred. The file exists.
There was nothing added to the iis.log
file but the usual Error events were added to the System event log.
I then manually deleted the applicationhost.config.tmp
file and ran net start was
. This time, I got System error 13 has occurred. The data is invalid.
This time, there were new entries to 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 ]