IIS ApplicationHost.config file disappeared from my VM

Hashvin Rao (MY) 10 Reputation points
2025-09-05T04:29:14.4066667+00:00

Hello team,

Greetings. I would like to check, regarding from the subject I would like to know why my IIS ApplicationHost.config file is missing out of sudden. I tried many possible ways to restore back however it is not working. Whenever I attempted to restore the file, it gives this error:-

User's image

I had tried to restore from C:\inetpub\history\CFGHISTORY_XXXXXXXXXX still can't. I already checked with our Plesk team and they recommended to check with Microsoft team since IIS belongs to them.

I need this issue fix ASAP. What is the solution?

Thanks.

Windows for business | Windows Server | User experience | Other
{count} vote

2 answers

Sort by: Most helpful
  1. Quinnie Quoc 7,625 Reputation points Independent Advisor
    2025-09-05T08:30:16.3433333+00:00

    Dear Hashvin Rao (MY),

    Thank you for reaching out. We understand the urgency of the issue involving the missing ApplicationHost.config file in IIS and the failure to restore it from the CFGHISTORY_XXXXXXXXXX backup folder.

    The error you're encountering—typically HRESULT: 0x80070002—suggests that the backup folder may be incomplete or the required configuration files are missing. This can occur due to antivirus quarantine, disk corruption, or a failed update. To resolve this, please verify that the backup folder contains all necessary files: applicationHost.config, administration.config, and redirection.config. If these files are present, try restoring using the following elevated command:

    powershell

    %windir%\system32\inetsrv\appcmd restore backup <backup-folder-name>
    

    If no valid backup is available, you may need to copy the ApplicationHost.config from a system with a matching IIS version or rebuild the configuration manually using IIS Manager. For future prevention, we recommend enabling automatic configuration history via registry:

    powershell

    reg add HKLM\Software\Microsoft\InetStp\ConfigurationHistory /v EnableHistory /t REG_DWORD /d 1 /f
    

    Please let us know if you need assistance validating backups or rebuilding your IIS configuration.

    Best regards,

    Quinnie Quoc.


  2. Kirti Darji 5 Reputation points
    2025-11-15T09:56:02.2233333+00:00

    I am also facing the same problem and I am not able to uninstall IIS on Windows Server 2019 Standard Edition after the recent Windows update. IIS is running fine, but I cannot find the applicationHost.config file and I am unable to change any site settings. Please look into this and do the needful

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.