ClickOnce and IsolatedStorage

You need to use application scoped, rather than domain scoped, isolated storage. This can be done by using one of IsolatedStorageFileStream’s overloaded constructors. Example: using System.IO; using System.IO.IsolatedStorage; … IsolatedStorageFile appScope = IsolatedStorageFile.GetUserStoreForApplication(); using(IsolatedStorageFileStream fs = new IsolatedStorageFileStream(“data.dat”, FileMode.OpenOrCreate, appScope)) { … However, now you will run into the issue of this code only working … Read more

Why doesn’t ClickOnce in Visual Studio deploy content files from dependent assemblies?

I seemed to have found an evolution of the answer from @John Hunter that is much simpler, add this to the csproj. <ItemGroup> <Content Include=”Bin\**\*.rpt” /> </ItemGroup> This will then make visual studio automatically view all *.rpt files in that folder as part of the solution. You could go with *.* to accumulate everything. This … Read more

Error message “Unable to install or run the application. The application requires stdole Version 7.0.3300.0 in the GAC”

Try going to the Publish tab in the project properties and then select the Application Files button. Then set the following properties: File Name of stdole.dll Publish status to Include Download Group to Required After that you need to republish your application. If the reference has CopyLocal=true, then the reference will be published with the … Read more

What alternatives are there to ClickOnce? [closed]

Squirrel: It’s like ClickOnce, but it works. Squirrel is both a set of tools and a library, to completely manage both installation and updating your desktop Windows application, written in either C# or any other language (that is, Squirrel can manage native C++ applications). Squirrel uses NuGet packages to create installation and update packages, which … Read more

Error deploying ClickOnce application – Reference in the manifest does not match the identity of the downloaded assembly

There was an issue with Visual Studio 2008 which is solved by not embedding the default manifest – one of the comments on that article suggests the problem still exists in Visual Studio 2010. In project properties -> Application tab -> Resources -> checkbox Icon and manifest, the setting “Embed manifest with default settings” caused … Read more

Best way to deploy Visual Studio application that can run without installing

It is possible and is deceptively easy: “Publish” the application (to, say, some folder on drive C), either from menu Build or from the project’s properties → Publish. This will create an installer for a ClickOnce application. But instead of using the produced installer, find the produced files (the EXE file and the .config, .manifest, … Read more

tech