Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Monday, August 14, 2017 6:06 AM
Hi,
We have hosted WCF service on Windows Server 2012 R2 with IIS 8.5 The service is hosted in default website , having Default app pool.
Past few days the DefaultAppPool stops automatically and when we checked eventvwr, found following messages:
1.
Log Name: System
Source: Microsoft-Windows-WAS
Event ID: 5189
Task Category: None
Level: Error
Keywords: Classic
Description: The Windows Process Activation Service failed to generate an application pool config file for application pool 'DefaultAppPool'. The error type is '5'. To resolve this issue, please ensure that the applicationhost.config file is correct and recommit the last configuration changes made. The data field contains the error number.
2.
Log Name: System
Source: Microsoft-Windows-WAS
Event ID: 5011
Task Category: None
Level: Warning
Keywords: Classic
Description: A process serving application pool 'DefaultAppPool' suffered a fatal communication error with the Windows Process Activation Service. The process id was '13512'. The data field contains the error number.
It was running fine all these days, suddenly we are encountering this issue. Can anyone please help me resolving this?
Regards,
NeelAK
All replies (1)
Monday, August 14, 2017 6:40 AM
Hi NeelAK,
The error message "The Windows Process Activation Service failed to generate an application pool config file for application pool 'DefaultAppPool'." is reported by Application Host Helper Service. It seems that there is something wrong with your applicationhost.config. If the config file have syntax error, it could report 5189 error then WAS will failed to create the worker process.
So to fix this issue, please open CMD and run the command:
C:\Users\v-yukdin>cd c:\windows\system32\inetsrv
c:\Windows\System32\inetsrv>appcmd list config
If there is something wrong with applicationhost.config, it could report the error like:
ERROR ( message:Configuration error
Filename: \\?\C:\windows\system32\inetsrv\config\applicationHost.config
Line Number: 138
Description: Configuration file is not well-formed XML
. )
Then note the error message and modify the applicationhost.config.
This link provide the steps to fix this issue:
https://technet.microsoft.com/en-us/library/cc734988(v=ws.10).aspx
Best Regards,
Yuk Ding