如何解决部署ClickOnce应用程序:无法启动应用程序,请与开发人员联系以寻求帮助
我一直在尝试为学校项目发布C#ClickOnce应用程序,但是在清除了所有与库相关的问题之后,该应用程序将安装并运行一次,但拒绝随后运行!我收到一个对话框,提示“无法启动应用程序,请联系开发人员以寻求帮助”。
https://i.stack.imgur.com/HXCT8.png
单击“详细信息”按钮将产生以下文本文档:
Windows : 10.0.18363.0 (Win32NT)
Common Language Runtime : 4.0.30319.42000
System.Deployment.dll : 4.8.3752.0 built by: NET48REL1
clr.dll : 4.8.4180.0 built by: NET48REL1LAST_B
dfdll.dll : 4.8.3752.0 built by: NET48REL1
dfshim.dll : 10.0.18362.1 (WinBuild.160101.0800)
SOURCES
Deployment url : file:///C:/Users/THOMASF001/AppData/Roaming/Microsoft/Windows/Start%20Menu/Programs/The%20Calc-Frew-lator/The%20Calc-Frew-lator.appref-ms%7C
ERROR SUMMARY
Below is a summary of the errors,details of these errors are listed later in the log.
* Activation of C:\Users\THOMASF001\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\The Calc-Frew-lator\The Calc-Frew-lator.appref-ms| resulted in exception. Following failure messages were detected:
+ Activation failed.
+ Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.
WARNINGS
There were no warnings during this operation.
OPERATION PROGRESS STATUS
* [15/08/2020 7:11:22 PM] : Activation of C:\Users\THOMASF001\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\The Calc-Frew-lator\The Calc-Frew-lator.appref-ms| has started.
* [15/08/2020 7:11:22 PM] : Performing necessary update check as specified by the deployment.
ERROR DETAILS
Following errors were detected during this operation.
* [15/08/2020 7:11:22 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,Boolean useActivationParameter)
at System.Deployment.Application.ApplicationActivator.Activate(DefinitionAppId appId,AssemblyManifest appManifest,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,Uri& deploymentUri)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivationWithRetry(Uri activationUri,String& errorPageUrl)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivationWithRetry(Uri activationUri,String& errorPageUrl)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
--- Inner Exception ---
System.UnauthorizedAccessException
- Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
- 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,Boolean useActivationParameter)
COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.
有关如何解决此问题的任何想法?我尝试过在网上寻找内容,但无论从哪里开始我都做不到。
谢谢!
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。