Hi,
We have deployed project on IIS. It is showing error.
The Application Host Helper Service encountered an error trying to delete the history directory 'C:\inetpub\history\CFGHISTORY_0000000021'. The directory will be skipped and ignored. Note that the directory may still get deleted in the future if the service restarts. The data field contains the error number.
Regards,
Pratik Dholu
Jayraj ChhayaPosted Dec 15, 2023, 2:21 PM
When deploying a project on IIS, encountering errors is not uncommon. In this case, the error message indicates a problem with the Application Host Helper Service and the deletion of a history directory. To troubleshoot this issue, you can follow these steps:
Restart the Application Host Helper Service: Sometimes, restarting the service can resolve the issue. Open the Services console, locate the "Application Host Helper Service," right-click on it, and select "Restart."
Check the permissions of the history directory: Ensure that the user account running the Application Host Helper Service has the necessary permissions to delete files and directories in the specified path. You can verify this by right-clicking on the history directory, selecting "Properties," and navigating to the "Security" tab.
Manually delete the history directory: If the service is unable to delete the directory, you can try deleting it manually. Stop the Application Host Helper Service, navigate to the specified directory ("C:\inetpub\history"), and delete the "CFGHISTORY_0000000021" directory. Afterward, start the service again and check if the error persists.
Update IIS and Windows: Ensure that you are using the latest version of IIS and that your Windows operating system is up to date. Sometimes, updating these components can resolve compatibility issues and fix known bugs.
If the above steps do not resolve the issue, it may be necessary to further investigate the error number mentioned in the error message. This could involve checking event logs, consulting Microsoft documentation, or seeking assistance from a more experienced IIS administrator or Microsoft support.
Remember to always back up your project and configuration files before making any changes to your IIS setup.
Pratik DholuPosted Dec 13, 2023, 8:57 AM
Hi,
This command execute
net stop apphostsvc,net start apphostsvc.After This error showing.
a process serving application pool suffered a fatal communication error with the windows process activation service
Satyaprakash SamantarayPosted Dec 13, 2023, 8:05 AM
To resolve this issue you need to restart the AppHostSvc.
You could follow below steps to restart AppHostSvc using command prompt: Run command prompt as administrator. Type command
net stop apphostsvcType commandnet start apphostsvc