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?
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.
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.
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.
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.
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:
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With