in short: Reinstall both IIS and WAS.
In details -
Step 1
- Go to "Add remove programs"
- "Turn windows features on or off"
- Remove both IIS and WAS (Windows Process Activation Service)
- Restart the PC
Step 2
- Go to "Add remove programs"
- "Turn windows features on or off"
- Turn on both IIS and WAS (Windows Process Activation Service)
Note: Reinstalling IIS alone won't help. You have to reinstall both IIS and WAS
http://superuser.com/questions/704850/how-to-restore-iis-settings-and-default-web-site