在使用点击一次部署安装问题 [英] Installation issue while using click once deployment

查看:804
本文介绍了在使用点击一次部署安装问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有,我想它来部署在远程服务器上的一个WPF应用程序。以前我用VS2010,所以这将是很容易创建安装/的.msi文件并部署在其它机器。



目前我有VS2012。它没有安装部署选项。另外,我了解ClickOnce应用程序的部署方法来部署应用。



我尝试过的方法,但它不能正确当地本身安装应用程序。
中的应用程序的快捷方式启动首次应用程序(很少第二时间太)。下一次,它将引发我像



例外

 无法启动应用程序。应用程序无法启动。联系应用程序供应商



错误详细信息:



<此操作过程中检测到pre> 错误详细
以下错误。
* [29-01-2014 11时32分48秒] System.Deployment.Application.DeploymentException(激活)
- 激活失败。
- 资料来源:System.Deployment
- 堆栈跟踪:
在System.Deployment.Application.ComponentStore.ActivateApplication(DefinitionAppId APPID,弦乐activationParameter,布尔useActivationParameter)
在System.Deployment .Application.SubscriptionStore.ActivateApplication(DefinitionAppId APPID,弦乐activationParameter,布尔useActivationParameter)
在System.Deployment.Application.ApplicationActivator.Activate(DefinitionAppId APPID,AssemblyManifest appManifest,字符串activationParameter,布尔useActivationParameter)
的系统。 Deployment.Application.ApplicationActivator.ProcessOrFollowShortcut(字符串shortcutFile,字符串&安培; errorPageUrl,临时文件和放大器; deployFile)
在System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(URI activationUri,布尔isShortcut,字符串textualSubId,字符串deploymentProviderUrlFromExtension,browserSettings browserSettings,字符串和放大器; errorPageUrl)
在System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(对象状态)
---内部异常---
System.IO.FileNotFoundException
- 系统无法找到指定的文件。 (异常来自HRESULT:0x80070002)
- 资料来源:System.Deployment
- 堆栈跟踪:
在System.Deployment.Application.NativeMethods.CorLaunchApplication(UInt32的HOSTTYPE,字符串applicationFullName,的Int32 manifestPathsCount,字符串[] manifestPaths,的Int32 activationDataCount,字符串[] activationData,PROCESS_INFORMATION PROCESSINFORMATION)
在System.Deployment.Application.ComponentStore.ActivateApplication(DefinitionAppId APPID,弦乐activationParameter,布尔useActivationParameter)

帮助我在这?


解决方案

我已经在此之前有问题......我不能告诉你是什么原因导致它,但你会很高兴地听到,该解决方案是相当容易。当你得到一个错误消息,指出应用程序无法启动。联系应用程序供应商的',请执行下列操作来解决它:





删除应用程序历史记录该应用程序



ClickOnce应用程序安装到以下路径:




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




请注意,应用文件夹默认是隐藏的,所以你需要的显示隐藏文件,并在Windows资源管理器文件夹选项对话框的文件夹的。在这个文件夹是一个文件夹命名为数据。这包含了用户设置,并应的的被删除。



此文件夹中的其他文件夹将包含应用程序的历史的删除...这些文件夹具有随机名称,如AP3HP63D.KQT。这下一级里面,你在删除之前查看的内容是非常重要的。



文件夹也有半随机的名字,虽然他们使用的解决方案的第一个和最后几个字母它们代表......一个例子文件夹:Midas.Models:




mida..dels_fd8cb4d036a0621f_0003.0001_none_22d6cc2069472451




所以,如果你想删除你的应用程序的版本下载历史记录,请确保内部文件夹是正确的。具有位于正确的'外的文件夹(例如AP3HP63D.KQT'),你可以简单地将其删除并重新下载最新版本的应用程序。


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?

解决方案

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:

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.

这篇关于在使用点击一次部署安装问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆