问题描述
我一直在尝试为学校项目发布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_@R_778_4045@ION process@R_778_4045@ion)
at System.Deployment.Application.ComponentStore.ActivateApplication(DeFinitionAppId appId,Boolean useActivationParameter)
COMPONENT STORE TRANSACTION DETAILS
No transaction @R_778_4045@ion is available.
有关如何解决此问题的任何想法?我尝试过在网上寻找内容,但无论从哪里开始我都做不到。
谢谢!
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)