Freigeben über


How to configure Vista to enable ClickOnce publishing

This came up recently internally and I thought I'd share it here in case other are running into it..

Because Vista (and Longhorn Server) run the new IIS7, there are a handful of tweaks you have to make to IIS and VS to make clickonce publishing work...  Brian Noyes has a good blog on the details... But basically.

 

1. Configure VS to run in Admin mode:

  • Go to devenv.exe in the C:\Program Files\Microsoft Visual Studio 8\Common7\IDE directory.
  • Right click and go to properties.
  • Select the Compatibility tab.
  • Check the box at the bottom that says Run this program as an administrator (see below).

 

2.  Turn on IIS 6 compatibility as follows –

Control Panel | Programs | Turn Windows features on or off

You need the “IIS Metabase and IIS 6 configuration compatibility” feature turned on.

Oh, and yes, we are fixing both of these for Orcas RTM ;-)

IIS7CompatMode.png

Comments

  • Anonymous
    March 06, 2007
    The comment has been removed

  • Anonymous
    March 06, 2007
    You've been kicked (a good thing) - Trackback from DotNetKicks.com

  • Anonymous
    March 07, 2007
    I ran across an issue with setting the admin option on the compatibility tab on Vista Ultimate.   It appears that User Account Control needs to be enabled in order to gain access to that checkbox, otherwise it's disabled.  It does retain it's setting if UAC is disabled after setting it.

  • Anonymous
    March 07, 2007
    Brad, the blog article you're referring to was written on November 5, 2006. Since then you (MS) have released VS 2005 SP1, and yesterday the VS 2005 SP1 Update for Windows Vista was released. Do these releases change anything in terms of the recommendations in the articles? Thanks, Tor.

  • Anonymous
    March 07, 2007
    Yup -- this is pretty much unchanged in the SP and Update we have done recently...