I have a Windows Forms application developed using C# in .NET framework 3.5, Service pack 1. The application can be published based on the development database as well as th
I know this is an old thread, but I had this same error with WPF while trying to update and older version of the program. I had to uninstall the older version and rerun the click once installer then it worked fine.
I thought i would post it here.
I have a product called ClickOnceMore (www.clickoncemore.net) that is designed for this type of use. Its main use is in automating the ClickOnce part of your build.
It has full support for macro expansions allowing you to define, for example, DEV and PROD versions. When you build you can define which environment you are building for and then the App Name will reflect that. Check it out if you get a chance.
So I have finally figured out how to deploy different versions of the same application. The application manifest file was missing deploymentProvider attribute of the deployment element.
After adding deployment provider attribute of the deployment element in the application manifest, I was able to install my app from various location. But the problem here was that it was overriding the previously installed application. For this problem, I followed this tutorial to distinguish my development application from the production application.
Everything works great now. :)
The first thing I'd try is to go to the project properties of your Windows Forms project. In the Publish tab click on the Options button and change the "Product Name" to YourProductName_Test or something similar and see if that will allow you to install two versions side by side.
I never tried this, but I think ClickOnce apps are uniquely identified by a combination of "Publisher Name" and "Product Name" values and if that is the case this might solve your problem... Give it a shot...