Click here to Skip to main content
15,885,278 members
Articles / Web Development / IIS
Tip/Trick

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

Rate me:
Please Sign up or sign in to vote.
3.33/5 (3 votes)
25 Nov 2011CPOL 56.3K   2   1
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)



Comments and Discussions

 
GeneralReason for my vote of 1 So you got an error message saying w... Pin
Jakub Januszkiewicz30-Nov-11 10:19
Jakub Januszkiewicz30-Nov-11 10:19 
Reason for my vote of 1
So you got an error message saying what you need to do, you did exactly that and now you're posting it as a tip? Wow, how useful.

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.