Event 9009 IIS Apphostsvc - The Application Host Helper Service encountered an error

Vishakhan K 0 Reputation points
2024-03-14T07:01:14.7833333+00:00

Hi Team,

We have noticed one error event in the vent viewer. IIS config history path contains 11 files. hope all are the configuration backups.

we tried to reset the "Application host Helper service" but the files are not removing from the directory automatically.

Can somebody help on this case to clear the file without manual deletion?

Error:

The Application Host Helper Service encountered an error trying to delete the history directory 'C:\inetpub\history\CFGHISTORY_0000000066'. 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.

Internet Information Services
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,127 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Yurong Dai-MSFT 2,781 Reputation points Microsoft Vendor
    2024-03-15T07:32:00.51+00:00

    Hi @Vishakhan K,

    According to Microsoft :

    Cause :

    This event is logged when the Application Host Helper Service encountered an error trying to delete the history directory.

    Resolution :

    Stop and restart AppHostSvc

    If the Application Host Helper Service (AppHostSvc) cannot delete a history directory, it will try to do so the next time that the service starts. Normally you do not have to take any action when this occurs. However, if the problem persists, you can stop and restart the service manually.

    To perform this procedure, you must have membership in Administrators, or you must have been delegated the appropriate authority.

    To stop and restart the Application Host Helper Service:

    1. Open an elevated Command Prompt window. Click Start, right-click Command Prompt, and then click Run as administrator.
    2. At the command prompt, type net stop apphostsvc.
    3. At the command prompt, type net start apphostsvc.

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the email notification for this thread.

    Best regards,

    Yurong Dai

    0 comments No comments

  2. Vishakhan K 0 Reputation points
    2024-03-15T11:56:09.62+00:00

    @Yurong Dai-MSFT we have already tried this steps and the IIS config history file is not clearing after service restart. Do we need to follow any other steps to clear it without disruptions of running website configuration file?

    We don't want to manually delete the file from the inetpud directory.

    Can you help on this issue ?