Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installation issue while using click once deployment

I have a Wpf application where I want it to deploy over remote servers. Previously I used VS2010, So It would be easy to create setup/ .msi files and deploy over other machines.

Currently I have VS2012. It doesn't have setup deployment option. Also, I read about clickonce application deployment method to deploy my application.

I tried an approach but It doesn't properly install the application in local itself. The application shortcut launching the application for the first time (rarely second time too). Next time, It throws me exception like

"Cannot start application". Application cannot be started. Contact  the application vendor

Error details are:

ERROR DETAILS
    Following errors were detected during this operation.
    * [29-01-2014 11:32:48] System.Deployment.Application.DeploymentException (Activation)
        - Activation failed.
        - Source: System.Deployment
        - Stack trace:
            at System.Deployment.Application.ComponentStore.ActivateApplication(DefinitionAppId appId, String activationParameter, Boolean useActivationParameter)
            at System.Deployment.Application.SubscriptionStore.ActivateApplication(DefinitionAppId appId, String activationParameter, Boolean useActivationParameter)
            at System.Deployment.Application.ApplicationActivator.Activate(DefinitionAppId appId, AssemblyManifest appManifest, String activationParameter, Boolean useActivationParameter)
            at System.Deployment.Application.ApplicationActivator.ProcessOrFollowShortcut(String shortcutFile, String& errorPageUrl, TempFile& deployFile)
            at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
            at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
        --- Inner Exception ---
        System.IO.FileNotFoundException
        - The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
        - Source: System.Deployment
        - Stack trace:
            at System.Deployment.Application.NativeMethods.CorLaunchApplication(UInt32 hostType, String applicationFullName, Int32 manifestPathsCount, String[] manifestPaths, Int32 activationDataCount, String[] activationData, PROCESS_INFORMATION processInformation)
            at System.Deployment.Application.ComponentStore.ActivateApplication(DefinitionAppId appId, String activationParameter, Boolean useActivationParameter)

Help me on this?

like image 912
Anees Deen Avatar asked Jan 29 '14 06:01

Anees Deen


People also ask

What is ClickOnce deployment?

ClickOnce is a deployment technology that enables you to create self-updating Windows-based applications that can be installed and run with minimal user interaction.

Is ClickOnce still supported?

ClickOnce and DirectInvoke are supported out of the box for all Windows users. Users that want to disable ClickOnce support can go to edge://flags/#edge-click-once and select Disabled from the dropdown list. You'll have to Restart the browser.

Where does ClickOnce install to?

Every ClickOnce application installed on a local computer has a data directory, stored in the user's Documents and Settings folder. Any file included in a ClickOnce application and marked as a "data" file is copied to this directory when an application is installed.

How do you fix application Cannot be started Contact the application vendor?

Contact the application vendor." What should I do? This error is typically due to a corrupted ClickOnce (a Microsoft installation technology) cache. Try deleting it and reinstalling AudioNote: To delete your ClickOnce cache (you may wish to make a backup copy first) delete the “\apps\2.0\” folder.


1 Answers

I've had this problem before... I can't tell you what causes it, but you'll be glad to hear that the solution is fairly painless. When you get an error message stating that the 'Application cannot be started. Contact the application vendor.', do the following to fix it:

enter image description here

Delete the application history for that application

ClickOnce applications are installed into the following path:

C:\Users\username\AppData\Local\Apps\2.0.

Please note that the Apps folder is hidden by default, so you'll need to show hidden files and folders in the Windows Explorer Folder Options dialog. In this folder is a folder named Data. This contains the user settings and should not be deleted.

Other folders in this folder will contain the application history and should be deleted... these folders have random names like 'AP3HP63D.KQT'. It is important that you view the contents before you delete them.

Folders inside this next level also have semi random names although they use the first and last few letters of the solution folders that they represent... an example: Midas.Models:

mida..dels_fd8cb4d036a0621f_0003.0001_none_22d6cc2069472451.

So, if you are trying to delete the version download history for your application, please ensure that the inner folders are the correct ones. Having located the correct 'outer folder' (e.g. 'AP3HP63D.KQT'), you can simply delete it and re-download the latest version of the application.

like image 112
Sheridan Avatar answered Sep 30 '22 18:09

Sheridan