Click here to Skip to main content
13,201,763 members (68,029 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


2 bookmarked
Posted 25 Nov 2011

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

Rate this:
Please Sign up or sign in to vote.
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!


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


About the Author

You may also be interested in...


Comments and Discussions

GeneralReason for my vote of 1 So you got an error message saying w... Pin
Jakub Januszkiewicz30-Nov-11 10:19
memberJakub Januszkiewicz30-Nov-11 10:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.171020.1 | Last Updated 25 Nov 2011
Article Copyright 2011 by Bangla Gopal Surya Prakash
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid