IIS ApplicationHost.config file disappeared from my VM

Hashvin Rao (MY) 10 Reputation points
2025-08-29T03:22:59.9233333+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 development | Internet Information Services
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Tom Tran (WICLOUD CORPORATION) 1,920 Reputation points Microsoft External Staff
    2025-08-29T08:41:42.28+00:00

    Hi Hashvin Rao (MY),

    Thanks for reaching out!

    Quick recap: Your applicationHost.config file appears missing, and attempts to restore from C:\inetpub\history\CFGHISTORY_XXXXXXXXXX fail with error 0x80070103 (No more data is available). This is a recoverable issue because IIS relies on this file for site and app pool configuration. Common causes include:

    • File lock by IIS services (W3SVC, WAS, AppHostSvc) or antivirus
    • Shared Configuration enabled (config stored on a UNC path)
    • Plesk-managed IIS (manual edits blocked; must use Plesk repair tools)
    • Permissions or ownership issues in %windir%\System32\inetsrv\config

    You could try these solutions out:


    Check if Shared Configuration is enabled

    "%windir%\system32\inetsrv\appcmd.exe" list config /section:sharedConfiguration
    

    If enabled="true", restore the config on the UNC path in redirection.config.

    Reference: Shared Configuration in IIS


    Stop IIS services to release locks

    net stop w3svc
    net stop was
    net stop apphostsvc
    

    Restore from IIS Configuration History

    Copy applicationHost.config from a CFGHISTORY folder:

    robocopy "C:\inetpub\history\CFGHISTORY_XXXXXXXXXX" "%windir%\System32\inetsrv\config" applicationHost.config /R:0
    

    Reference: Recover from Configuration History


    If that fails, use AppCmd backup/restore

    appcmd list backup
    appcmd restore backup "<Name>" /stop:true
    

    Reference: AppCmd Backup and Restore


    On Plesk servers, let Plesk rebuild IIS config

    plesk repair web -y
    "%plesk_bin64%\websrvmng.exe" --reconfigure-all
    

    Reference: Plesk Repair Utility


    Restart services and verify

    net start apphostsvc
    net start was
    net start w3svc
    appcmd list site
    

    I also managed to find some similar cases you can check out when you have the time:

    I hope this helps you resolve your issue! If you have any more issues, please feel free to reach out - I'll be happy to help!

    0 comments No comments

  2. Hashvin Rao (MY) 10 Reputation points
    2025-08-29T08:59:46.8+00:00

    Hello Tom,

    Good day. Thanks for the revert. I had tried to restore the backup from C:\inetpub\history\ however whenever I am restoring, I am having access denied issue. Like error below:-

    ERROR ( hresult:80070005, message:Command execution failed

    I am wondering why am I getting this and yeah am running everything as administrator.

    To add, I am trying to run this command in powershell or cmd getting error like below:-

    User's image

    User's image

    Please advise us on this. Thanks.


  3. Morten Irve 0 Reputation points
    2025-10-21T16:56:51.06+00:00

    Hi - I follow the thread, because I got similar issues.
    And none of the above ideas works for me.

    But I found a localuser - named: admin - it is not administrator when I found it, but it has deleted 4 different logs - incl. System Eventlogs etc. :-( and NOT created by me.

    Do you have the same user on your WM ?

    I'm still trying to figure it out.
    I can make a file named: applicationHost.confi

    But if I add the last G - I get write error or file not found.

    Fingers crossed, Irve

    0 comments No comments

  4. Morten Irve 0 Reputation points
    2025-10-21T17:26:13.5833333+00:00

    Hi again

    My issue was a virus - Scan your server and see if you get the same - I booted into safemode - and removed it.
    Now all is good :-)User's image

    Good luck.

    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.