Hi @성훈 정,
I see you're having trouble with seeing file write errors when trying to restart or stop sites, edit SSL bindings, or change settings in IIS. These issues usually happen when IIS can't access or find its main configuration file: ApplicationHost.config
.
Let’s look at a few common reasons this file might disappear or become unusable:
- Sometimes, Windows might lose track of files due to disk errors or corruption. If the system had a rough shutdown or there's a bad sector,
ApplicationHost.config
could be affected. You can check for this by running:chkdsk
- Security tools like antivirus or endpoint protection may mistakenly block or quarantine
ApplicationHost.config
. Please check your antivirus logs or quarantine folder to see if the file was flagged. - Even if the file exists, you might not be able to access it due to NTFS permission issues. You can check permissions using:
icacls "C:\Windows\System32\inetsrv\config\ApplicationHost.config"
If you see (I)
next to the permissions, that means they are inherited from the parent folder. Look for (F)
which means Full Control. If your account only has (R)
(Read), you won’t be able to modify or restore the file.
Here are a few steps you can try to restore or recover the missing configuration file:
- Run this command to list all files, including hidden ones:
dir /a "C:\Windows\System32\inetsrv\config"
- IIS automatically creates backups in:
%windir%\system32\inetsrv\backup
To restore a backup:iisreset appcmd restore backup "Backupname" iisreset
- If you can't copy the file normally, boot into Safe Mode and try again. You can also use a recovery tool or bootable USB to copy the backup file manually.
- As a last resort, you can reinstall IIS or repair the configuration using DISM:
DISM /Online /Cleanup-Image /RestoreHealth
For more information, you can check out: