Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / web / IIS

Error: Unable to open the Web site ‘http://localhost/’. To access local IIS Web sites, you must install the following IIS components

3.33/5 (3 votes)
25 Nov 2011CPOL 56.8K  
I was trying to set up one of my solution in IIS 7, Window 7 & was ended up with the below issue.

Microsoft Visual Studio


Unable to open the Web site ‘http://localhost/’. To access local IIS Web sites, you must install the following IIS components:

  • IIS 6 Metabase and IIS 6 Configuration Compatibility

In addition, you must run Visual Studio in the context of an administrator account.

For more information, press F1.
OK   Help

To fix this issue I had to run through the below steps

  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.

Happy Kooding… Hope this helps!

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)