Deploying ClickOnce application: Cannot Start Application, Contact the Developer for Assistance

0

I've been trying to publish a C# ClickOnce application for a school project, but after clearing up all the dependency issues with libraries, the application will install and run once but refuse to run afterwards! I get a dialogue saying "Cannot Start Application, Contact Developer for Assistance".

https://i.stack.imgur.com/HXCT8.png

Clicking the "details" button yeilds the following text document:

    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, 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, Uri& deploymentUri)
            at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivationWithRetry(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, 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, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, 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, String activationParameter, Boolean useActivationParameter)

COMPONENT STORE TRANSACTION DETAILS
    No transaction information is available.

Any ideas for how I can resolve this? I tried looking online but I can make neither head nor tail of where to begin.

Thank you!

c#
wpf
installation
clickonce
publish
asked on Stack Overflow Aug 15, 2020 by ThomasFrew • edited Aug 15, 2020 by ThomasFrew

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0