I recently reimaged my machine & after that yesterday when i tried creating a Virtual directory it ran into below exception : Unable to create the virtual directory.To access local IIS Web sites, you must install the following IIS components: IIS 6 Metabase and IIS 6 Configuration Compatibility
You need to follow the below steps to get this resolved:
1. Click Start, and then click Control Panel.
2. Click Programs and Features.
3. Click Turn Windows features on or off.
4. In the dialog box,expand Internet Information Services.
5. Expand Web Management Tools, and then expand IIS 6 Management Compatibility.
6. Click to select the IIS Metabase and IIS 6 configuration compatibility check box, and then click OK.
Hope this helps 🙂