Tip/Trick: Using IIS7 on Vista with VS 2005
page 1 of 2
Published: 19 Sep 2006
Unedited - Community Contributed
In this article, Scott examines how to work with Internet Information Services 7 on Windows Vista with Visual Studio 2005.
by Scott Guthrie
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 14882/ 43
Article Contents:


Republished with Permission - Original Article

A few people have pinged me over the last week asking about how to use VS 2005 with an IIS 7.0 web-site on Windows Vista.  Specifically, they've run into an issue where they see a dialog message asking them to install the FrontPage Server Extensions, or they get a "You must be a member of the administrators group" message when they try to connect (see dialog below):

Figure 1

Bradley has published a nice blog post that describes detailed steps on how to enable VS 2005 to connect to IIS 7.0.  To quickly summarize you need to follow the below two steps to enable it:

1) You need to make sure that you have the the optional "IIS 6 Management Compatibility" option installed within IIS7.  This installs an API for the new configuration system that is compatible with the old Metabase APIs (which is what VS 2005 uses).  You can select this using the "Turn Windows Features on or Off" option in the Vista Control Panel:

Figure 2

2) You need to make sure you launch VS 2005 with "elevated" privledges so that you have admin privledges to connect to IIS (this is needed to debug a service, as well as create sites and/or change bindings that impact the entire machine).  You can do this by right-clicking on the VS icon and select the "Run as Administrator" option when launching VS:

Figure 3

Note that this is needed even if your user is already in the administrators group if you have UAC enabled (which is on by default with Vista).  If you disable UAC (which you can also do via the control panel), then this second step isn't required.  Running VS 2005 with "elevated" privileges won't be required if you use the built-in VS 2005 Web-Server (since it has reduced privileges already).  It is only required when connecting and running/debugging with IIS locally.

We'll be updating Visual Studio 2005 to have more accurate error messages to help guide you to the above steps more naturally in the future.  Until then, just use the above steps and you are good to go.

Hope this helps,


View Entire Article

User Comments

Title: Issues with IIS7, Vista SP1 and VS 2005   
Name: Rupak Ganguly
Date: 2008-05-06 9:33:38 AM
I had other issues which I have written about in my post here http://developershelf.blogspot.com/2008/05/problem-loading-iis7-hosted-wap.html
Title: Tip/Trick: Using IIS7 on Vista with VS 2005   
Name: Steve Brown
Date: 2007-02-26 11:34:32 PM
Your advice worked with VWD Express 2005 as well. Thanks

Product Spotlight
Product Spotlight 

Community Advice: ASP | SQL | XML | Regular Expressions | Windows

©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-05-29 10:37:49 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search