Patrick’s Bytes

Techie for the past 30 years…

Unable to deploy ClickOnce VSTO apps on Windows 7 RC

When you try to install a ClickOnce VSTO application you got the follow error saying your .NET Framework version is not correct (however Windows 7 ships with .NET 3.5 SP1)

Untitled picture2

Thanks to a blog post from the VSTO product team, I realize that Windows 7 RC left our a file in C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\RedistList

image

When I start up my Windows 2008 VPC, I see there is a FrameworkList.xml file inside

image

So I copy it out from my VPC, then I restart Visual Studio (it is not mentioned in the blog) and republish the VSTO app. The installer is now working!

Untitled picture

3 Responses to “Unable to deploy ClickOnce VSTO apps on Windows 7 RC”

  1. On my Windows 7 RC1 workstation there is a Frameworklist.xml file but it is only 8K. When I look at a Vista system the file is 15K and on a 2008 Server system it is 15K. My RC1 is a 64bit version, and maybe that is why there is a truncated version of the Frameworklist.xml file!
    Can anyone explain what this file is about and whether it is safe to replace the 8K version with one from Vista or 2008 Server?

    When I compare the content of the files I see the larger file reference DotNet Framework 3.5 but the version on my workstation does not so I can sort of see the link to this truncated file and the problem installing a VSTO add-in. However, what does confuse me is that I can install the same add-in if it is published from a Vista machine. This tends to indicate the mysterious file is used at publish time but then why no error message from Visual Studio???

    Comment by GraemeWT — June 13, 2009 @ 3:38 pm

  2. Sorry – on the 2008 system the file is 24K.

    Comment by GraemeWT — June 13, 2009 @ 3:39 pm

  3. Sorry, the solution doesn’t work for Windows 7 64bit. Not with the 12K and not with the 24K files

    Comment by Lary — March 13, 2010 @ 11:01 am

RSS feed for comments on this post. TrackBack URL

Leave a Response