When trying to enable an IIS website, you will receive an error similar to this…
This can happen with normal web applications, including SharePoint 2010/2013.
This issue is due to the file 'applicationhost.config' being corrupted. To fix
- Backup the corrupted file at C:\Windows\system32\inetsrv\config\applicationhost.config
- Restore a copy from the backup directory at C:\inetpub\history\
Then start \ restart IIS.
The problem will be resolved.