ClickOnce部署”;激活失败”;FileNotFoundException
本文关键字:FileNotFoundException 失败 激活 ClickOnce 部署 | 更新日期: 2023-09-27 18:27:52
我刚刚部署了一个clickonce应用程序的更新。我已经部署了几十个更新,没有任何问题。现在突然之间,随着这次更新,我所有的用户都报告了这个错误:
错误摘要
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of C:'Users'XXX'AppData'Roaming'Microsoft'Windows'Start Menu'Programs'XXX'XXX'XXX.appref-ms| resulted in exception. Following failure messages were detected:
+ Activation failed.
+ The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
在此操作过程中检测到以下错误。
* [3/15/2012 3:22:34 PM] 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)
当然,它并没有告诉我它正在查找的失败文件。我被这件事难住了!
至少有一些人能够通过清除所有ClickOnce数据并重新安装来解决这个问题,并将其归咎于文件存储损坏。
有关详细信息,请参阅此MSDN论坛文章。
对我来说,以下过程通常有效:
- 从"程序和功能"控制面板恢复到以前的版本
- 从安装URL在IE中运行安装http://...
我刚刚遇到这个问题。我们公司正处于更改域的过程中,用户的计算机位于域B上,但点击一次应用程序仍位于域a中的共享驱动器上。
将文件复制到计算机并从那里安装允许应用程序运行。