ClickOnce version not updating

clickonce, installation, winforms

Solution

Under you project properties, click the Updates button....

And then make sure you've set the correct minimum required version. This number does NOT automatically update like your other publish version number:

Problem

My ClickOnce application is currently on version 2.0.0.12. I updated the application, changed the published and assembly version to 2.0.0.13. When I start the application on a client desktop it checks for an update but does not recognize an update is available and runs as normal. I launch fidler and watched the request and the manifest it is pulling back still has the 2.0.0.12 version reference. On the server I deleted the 2.0.0.12 version all together, turned off caching on the server and uninstalled the app from the desktop. When I launch the installer it fails downloading files because it can't find the 2.0.0.12 version folder. I updated the Application.htm, Setup.exe and .application files on the server and they reflect the correct 2.0.0.13 version. My question is: Where the heck is the ClickOnce app getting the reference to the previous version from? Here is the error log: ``` PLATFORM VERSION INFO Windows : 6.1.7601.65536 (Win32NT) Common Language Runtime : 4.0.30319.17020 System.Deployment.dll : 4.0.30319.17020 built by: FXM3REL clr.dll : 4.0.30319.17020 built by: FXM3REL dfdll.dll : 4.0.30319.17020 built by: FXM3REL dfshim.dll : 4.0.31106.0 (Main.031106-0000) SOURCES Deployment url : {URL_REMOVED}\AlphaManager.application Server : Microsoft-IIS/7.0 X-Powered-By : ASP.NET Deployment Provider url : {URL_REMOVED}\/install/AlphaManager.application Application url : {URL_REMOVED}\/install/Application%20Files/AlphaManager_2_0_0_12/AlphaManager.exe.manifest Server : Microsoft-IIS/7.0 X-Powered-By : ASP.NET IDENTITIES Deployment Identity : AlphaManager.application, Version=2.0.0.12, Culture=neutral, PublicKeyToken=4bf6f9c465057aee, processorArchitecture=x86 Application Identity : AlphaManager.exe, Version=2.0.0.12, Culture=neutral, PublicKeyToken=4bf6f9c465057aee, processorArchitecture=x86, type=win32 APPLICATION SUMMARY * Installable application. ERROR SUMMARY Below is a summary of the errors, details of these errors are listed later in the log. * Activation of {URL_REMOVED}\/install/AlphaManager.application resulted in exception. Following failure messages were detected: + Downloading {URL_REMOVED}\/install/Application Files/AlphaManager_2_0_0_12/Microsoft.mshtml.dll.deploy did not succeed. + The remote server returned an error: (404) Not Found. ```

Original source