Vista + IIS 7 + Local IIS web site = error?

Finally got around to getting a clean install of Vista Beta 2 on my laptop and of course the first thing I install is Visual Studio 2005 and IIS 7 to see how the Local IIS option is going to play with the newly revamped IIS.  Well, if you choose the default options, this is the message you get when selecting Local IIS in the Open/Create Web Site dialog:

You must be a member of the Administrators group on the local computer to access the IIS metabase. Therefore, you cannot create or open a local IIS Web site. If you have Read, Write, and Modify permissions for the folder where the files are located, you can create a file system Web site that points to the folder in order to edit the files.

Initially I'm thinking this is the User Account Control feature in Vista blocking me from accessing the metabase.  So I turned that off in the Local Security Policy and still no go.

I then remembered an IIS 6 option under the Windows Features install dialog under Internet Information Services and found the following option that allows VS 2005 to play with IIS 7....IIS Metabase and IIS 6 configuration compatibility.  Here are the steps:

  1. Open Control Panel

  2. Open Programs

  3. Open Windows Features

  4. Expand Internet Information Services

  5. Expand Web Management Tools

  6. Expand IIS 6 Management Compatibility

  7. Check IIS Metabase and IIS 6 configuration compatibility

  8. Click OK

Here is another blog that discusses debugging in this environment:

Hopefully this can save somebody some time when/if they run into it.

Comments (8)

  1. andyywu says:

    hi Jerry,

    I’ve yet to get the integration between IIS 7 and VS 2005 to work since Beta 1, and even after using your instruction, I’m getting the following error:

    Error HRESULT E_FAIL has been returned from a call to a COM component.

    Any idea?


  2. Dexter@Ntegral says:

    Hello Andy,

    Windows Vista is blocking your ability to create a web site on the local host.  Even after you have added the your user account to the local computers administrators group you have to do the following:

    From the start menu, right-click on the "Microsoft Visual Studio 2005" application in the programs menu. Select "Run as  administrator".  This should allow you to create the web site project to the "localhost" website.


  3. Brian's Blog says:

    Ok you are now unit testing your web service and everything is going fine. So now you decide that you…

  4. Fab's blog says:

    Ca y est, tout est installé Après avoir fait un backup complet de ma machine, j’ai carrément formaté

  5. faustino says:

    that worked just fine but now I have another issue to solve:

    "Debugging Failed Because Integrated Windows Authentication"

    I could easily do that in IIS5 but can’t find the option on IIS7, does anybody have any tips?

  6. Jerry_Orman says:

    For the Integrated Windows Auth piece, you have to enable the authentication method via Programs and Features first.  Same steps as the IIS 6 Compatibility piece.


           World Wide Web Services


                   Windows Authentication

    This will enable the authentication option once you select the web site.  Pretty sure I’ve written something up on this and will edit the blog post with the details this week sometime.  

  7. MSDN Archive says:

    Be sure to check out my post on how to get VS 2005 ASP.NET debugging working on IIS7 / Vista –  

    Unfortunately, getting it to work at this point requires quite a number of steps.

  8. Happy says:

    Thx 4 Ur information..

    Huuufttt,,,but still confused -_-"

Skip to main content