« Previous Next »

Thread: Unable to browse IIS7 from Visual Studio 2008 in Vista

Last post 11-27-2008 5:50 PM by lucyht. 6 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (7 items)

Sort Posts:

  • 10-06-2008, 8:34 AM

    • xfx
    • Not Ranked
    • Joined on 02-02-2007, 12:44 AM
    • Posts 4

    Unable to browse IIS7 from Visual Studio 2008 in Vista

    I'm moving to Windows Vista (using Vista Business SP1) and so far everything has worked just fine until I tried to continue working on a "ASP.NET" project I had previously started on my old Windows XP machine.

    Anyway, the first thing I tried was to click "File->Open Web Site->Local IIS" and I received a message that I needed to install several components before I could access IIS.

    So I installed the missing components, started Visual Studio 2008 SP1 as Administrator and now I see the same message but no missing components are listed!

    Here's the exact message I see:

        Local Internet Information Server

        To access local IIS Web sites, you must install the following IIS components:


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

        For more information, press F1.

    Here's a link to see a screenshot of the dialog:
    http://software.xfx.net/vs2008_iis7_vista_error.jpg

    I think I have followed every single workaround/solution I found on the Internet until I had to do a System Restore as it looks I ended corrupting IIS. After the System Restore everything is back to normal: VS2008 works just fine, IIS works just fine but I cannot connect to IIS from VS20008

    Oh, one additional piece of information:
    At some point I found out that the IIS Admin Service (IISADMIN) was not running due to a 0x8009000F error.

    After doing some research it looks like this error is caused by the MachineKeys folder not having the appropriate permissions (both the Administrator and System accounts should have full rights on this folder and child items).

    Once the permissions were corrected the service was able to start... although I keep receiving the same error message from VS2008

    Here's a link to an article that explains how to overcome all these issues:
    http://developershelf.blogspot.com/2008/05/problem-loading-iis7-hosted-wap.html

    Any help in getting VS2008 to access the local IIS will be GREATLY appreciated.

  • 10-10-2008, 6:09 PM In reply to

    Re: Unable to browse IIS7 from Visual Studio 2008 in Vista

    Sounds like you are not running VS with admin privileges.  The following is from MSDN:

     http://msdn.microsoft.com/en-us/library/aa964620(VS.80).aspx 

     -----------------------------------

    Running Visual Studio with Administrative Privileges in Windows Vista

    To access local IIS Web sites, you must run Visual Studio in the context of an administrator account. By default, Windows runs applications in a limited-privilege user account even when you are logged on to the computer as an administrator.

    To run Visual Studio with administrative privileges in Windows Vista

    1. In Windows Vista, click Start, click All Programs, and then locate Visual Studio.

    2. Right-click Microsoft Visual Studio 2008, and then click Run as administrator.

    -----------------------------------
     
    Also, If you want a program that does not currently prompt for admin power to
    always prompt you in the future, you can right-click on the program,
    click properties, click the compatibility tab, and put a check next to
    run as administrator.
  • 10-14-2008, 10:44 AM In reply to

    • xfx
    • Not Ranked
    • Joined on 02-02-2007, 12:44 AM
    • Posts 4

    Re: Unable to browse IIS7 from Visual Studio 2008 in Vista

    Thank you for your suggestion heypartner but I am running VS with Admin privileges.

    Actually, I have already modified the shortcut in the START menu so that VS always runs under the Administrator account.

  • 10-22-2008, 9:56 AM In reply to

    • xfx
    • Not Ranked
    • Joined on 02-02-2007, 12:44 AM
    • Posts 4

    Re: Unable to browse IIS7 from Visual Studio 2008 in Vista

     Since no one appears to have an idea of what to do... I was wondering is there's some way to force VS2008 to generate some sort of log so that I can troubleshoot this issue.

    I'd assume that when VS2008 fails to connect to IIS is may be because of an error -- perhaps there's a way to "see" that error somehow?

  • 10-22-2008, 10:37 PM In reply to

    Re: Unable to browse IIS7 from Visual Studio 2008 in Vista

    Hi,

    Have you installed IIS 6 metabase and IIS 6 configuration and compatibility feature?http://learn.iis.net/page.aspx/125/metabase-compatibility-with-iis-7/rev/6 thanks

     

    Sincerely
    Microsoft Online Community Support
    Andrew Zhu - MSFT


    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
  • 10-23-2008, 1:15 PM In reply to

    • xfx
    • Not Ranked
    • Joined on 02-02-2007, 12:44 AM
    • Posts 4

    Re: Unable to browse IIS7 from Visual Studio 2008 in Vista

     Yes Andrew, I have followed every single instruction/step/tutorial/how-to that appeared on the Internet.

    But...  guess what? I have finally found the problem: the registry!

    As a last resort I decided to re-install VS2008 and after an apparent successful installation I noticed that none of VS's files had icons. After researching this issue I discovered that many of the entries in my registry were corrupted as they were missing their permissions and were inaccessible.

     So I followed the instructions from Aaron Stebner's blog and everything appears to be working fine now.

  • 11-27-2008, 5:50 PM In reply to

    • lucyht
    • Not Ranked
    • Joined on 04-25-2007, 3:11 PM
    • Posts 1

    Re: Unable to browse IIS7 from Visual Studio 2008 in Vista

    Just thought I would add a "quirk" to the list that was causing me the same symptoms.

    I had as a force of habit gone in and edited the bindings to fill in the host name. Big mistake as that is what was upsetting VS 2008.  Took it back out and everyone is playing nicely together.

    I will have to play with the host name setting properly though as I do tend to run multiple sites on port 80 and not being able to use VS 2008 would be a pain.

    Excellent info in permissions and the registry though!

Page 1 of 1 (7 items)
Microsoft Communities