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 (5)

  1. Judah says:

    Brad, is there anything required to *run* click once apps on Vista? We haven’t yet deployed Vista at our company, but one guy at work has installed it and he cannot run *any* ClickOnce app. I posted on the MSDN forums:

    http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1280306&SiteID=1

    But no one has replied after a few weeks. 🙁 Any thoughts? Surely Vista can run ClickOnce apps out of the box?

  2. You’ve been kicked (a good thing) – Trackback from DotNetKicks.com

  3. Lloyd says:

    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.

  4. Tor Langlo says:

    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.

  5. BradA says:

    Yup — this is pretty much unchanged in the SP and Update we have done recently…