Windows 10: ClickOnce: Wrong restored ActivationUri

Discus and support ClickOnce: Wrong restored ActivationUri in Windows 10 Customization to solve the problem; I have a ClickOnce application that is installed via the network. The length of the ActivationUri is 172 characters. Everything works fine until: - I... Discussion in 'Windows 10 Customization' started by ReinholdLeitner, Apr 10, 2020.

  1. ClickOnce: Wrong restored ActivationUri


    I have a ClickOnce application that is installed via the network.
    The length of the ActivationUri is 172 characters.


    Everything works fine until:
    - I deinstall the application.
    - I install the application via the nework again with a shorter activation URI 166 characters, it works as exppected.
    - I stop the application.
    - I start the application via the shortcut in the start menu no need to download via the network.
    - As ApplicationDeployment.CurrentDeployment.IsFirstRun is false the ActivationUri will be restored.
    - But the ActivationUri is wrong:
    It consists of the ActivationUri of the second install 166 characters and the last 6 characters of the ActivationUri of the first install are appended.


    Somewhere the ActivationUri of the first install was cached and reused erroneously. A reboot of the machine does not change this behaviour.

    How can I clear this cache?

    :)
     
    ReinholdLeitner, Apr 10, 2020
    #1

  2. Clickonce install fails with ARP entry in registry not found

    I cannot install a Clickonce application to a Win 10 Machine. The same app installs fine to other machines.

    Here is the pertinent part of the log file:

    COMPONENT STORE TRANSACTION FAILURE SUMMARY

    No transaction error was detected.

    WARNINGS

    There were no warnings during this operation.

    OPERATION PROGRESS STATUS

    * [14/03/2019 10:30:03 a.m.] : Activation of https://primacomputing.co.nz/xxxxxx....PRIMAMigrationToolset.application has started.

    * [14/03/2019 10:30:05 a.m.] : Processing of deployment manifest has successfully completed.

    * [14/03/2019 10:30:05 a.m.] : Installation of the application has started.

    * [14/03/2019 10:30:06 a.m.] : Processing of application manifest has successfully completed.

    * [14/03/2019 10:30:13 a.m.] : Found compatible runtime version 4.0.30319.

    * [14/03/2019 10:30:13 a.m.] : Request of trust and detection of platform is complete.

    * [14/03/2019 10:32:33 a.m.] : Downloading of subscription dependencies is complete.

    * [14/03/2019 10:32:33 a.m.] : Commit of the downloaded application has started.

    ERROR DETAILS

    Following errors were detected during this operation.

    * [14/03/2019 10:32:49 a.m.] System.Deployment.Application.DeploymentException (InvalidARPEntry)

    - ARP entry 1a3b010cf7286b10 does not exist.

    - Source: System.Deployment

    - Stack trace:

    at System.Deployment.Application.ShellExposure.RemoveArpEntry(DefinitionIdentity subId)

    at System.Deployment.Application.ShellExposure.RemoveSubscriptionShellExposure(SubscriptionState subState)

    at System.Deployment.Application.SubscriptionStore.UninstallSubscription(SubscriptionState subState)

    at System.Deployment.Application.ApplicationActivator.UninstallApplicationAndRedirectActivation(Boolean& isShortCut, Uri& deploymentProviderUri, String textualSubId, Uri activationUri)

    --- End of stack trace from previous location where exception was thrown ---

    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

    at System.Deployment.Application.ApplicationActivator.UninstallApplicationAndRedirectActivation(Boolean& isShortCut, Uri& deploymentProviderUri, String textualSubId, Uri activationUri)

    at System.Deployment.Application.ApplicationActivator.CleanApplicationReInstall(Boolean isShortcut, Uri deploymentUri, Uri activationUri, BrowserSettings browserSettings, String textualSubId, String errorPageUrl, String deploymentProviderUrlFromExtension,
    String shortcutFilePath)

    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.ArgumentException

    - Cannot delete a subkey tree because the subkey does not exist.

    - Source: mscorlib

    - Stack trace:

    at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)

    at Microsoft.Win32.RegistryKey.DeleteSubKeyTree(String subkey, Boolean throwOnMissingSubKey)

    at System.Deployment.Application.ShellExposure.RemoveArpEntry(DefinitionIdentity subId)

    * [14/03/2019 10:32:49 a.m.] System.Deployment.Application.DeploymentException (InvalidARPEntry)

    - ARP entry 1a3b010cf7286b10 does not exist.

    - Source: System.Deployment

    - Stack trace:

    at System.Deployment.Application.ShellExposure.RemoveArpEntry(DefinitionIdentity subId)

    at System.Deployment.Application.ShellExposure.RemoveSubscriptionShellExposure(SubscriptionState subState)

    at System.Deployment.Application.SubscriptionStore.UninstallSubscription(SubscriptionState subState)

    at System.Deployment.Application.ApplicationActivator.UninstallApplicationAndRedirectActivation(Boolean& isShortCut, Uri& deploymentProviderUri, String textualSubId, Uri activationUri)

    --- End of stack trace from previous location where exception was thrown ---

    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

    at System.Deployment.Application.ApplicationActivator.UninstallApplicationAndRedirectActivation(Boolean& isShortCut, Uri& deploymentProviderUri, String textualSubId, Uri activationUri)

    at System.Deployment.Application.ApplicationActivator.CleanApplicationReInstall(Boolean isShortcut, Uri deploymentUri, Uri activationUri, BrowserSettings browserSettings, String textualSubId, String errorPageUrl, String deploymentProviderUrlFromExtension,
    String shortcutFilePath)

    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.ArgumentException

    - Cannot delete a subkey tree because the subkey does not exist.

    - Source: mscorlib

    - Stack trace:

    at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)

    at Microsoft.Win32.RegistryKey.DeleteSubKeyTree(String subkey, Boolean throwOnMissingSubKey)

    at System.Deployment.Application.ShellExposure.RemoveArpEntry(DefinitionIdentity subId)

    I use Clickonce for deployng C# applications all the tme and find it xcellent However, I have no idea what this is about and no clue as to how to fix it.

    I tried rolling the system back to a restore point but it made no difference.

    Please help.

    Pete.
     
    petedashwood, Apr 10, 2020
    #2
  3. topgundcp Win User
    Restoring Windows 10 Image using Macrium Reflect


    In addition to the above. Here's my suggestion in step by step.
    I assume you have Macrium Installed in your current HD and already made a backup copy.
    1. Connect your new HD via USB port and boot up.
    2. Run Macrium, click on Restore tab then select the Backup Image that you made to restore
    3. click on "select a different target disk" then select your new HD as destination

      ClickOnce: Wrong restored ActivationUri [​IMG]
    4. Proceed to restore then Shutdown and disconnect the old HD and replace with the new HD
    5. Boot up with your new HD.
     
    topgundcp, Apr 10, 2020
    #3
  4. ClickOnce: Wrong restored ActivationUri

    Clickonce install fails with ARP entry in registry not found

    Hi Pete,



    Thank you for writing to Microsoft Community Forums.



    Please follow the troubleshooting steps mentioned in Fix problems
    that block programs from being installed or removed
    and check if this helps.



    If you are still facing the same issue, then I suggest you to post query in
    MSDN forums, where we have support professionals who are well equipped with the knowledge on ClickOnce application.



    Hope it helps.
     
    Shafeeq_Khan, Apr 10, 2020
    #4
Thema:

ClickOnce: Wrong restored ActivationUri

Loading...
  1. ClickOnce: Wrong restored ActivationUri - Similar Threads - ClickOnce Wrong restored

  2. System restore is going wrong

    in Windows 10 Gaming
    System restore is going wrong: I just did a system restore and it looked done to me but I couldnt open any apps or restart my PC so I pulled out the plug to restart it that way, when opening the PC again i got a notification that the restoring failed because i pulled out the plug. It gave me an option to...
  3. System restore is going wrong

    in Windows 10 Software and Apps
    System restore is going wrong: I just did a system restore and it looked done to me but I couldnt open any apps or restart my PC so I pulled out the plug to restart it that way, when opening the PC again i got a notification that the restoring failed because i pulled out the plug. It gave me an option to...
  4. How to config ClickOnce Trust Prompt Behavior

    in Windows 10 Gaming
    How to config ClickOnce Trust Prompt Behavior: Hi, I'm an application developer on Windows and am having trouble with the ClickOnce Trust Prompt Behavior on some computers. My application needs to be given hard drive access to download some files, and every time the user installs it or opens it, their Windows shows a...
  5. How to config ClickOnce Trust Prompt Behavior

    in AntiVirus, Firewalls and System Security
    How to config ClickOnce Trust Prompt Behavior: Hi, I'm an application developer on Windows and am having trouble with the ClickOnce Trust Prompt Behavior on some computers. My application needs to be given hard drive access to download some files, and every time the user installs it or opens it, their Windows shows a...
  6. How to config ClickOnce Trust Prompt Behavior

    in Windows 10 Software and Apps
    How to config ClickOnce Trust Prompt Behavior: Hi, I'm an application developer on Windows and am having trouble with the ClickOnce Trust Prompt Behavior on some computers. My application needs to be given hard drive access to download some files, and every time the user installs it or opens it, their Windows shows a...
  7. ClickOnce Dialog Bypass - Microsoft Edge Chromium

    in Windows 10 Gaming
    ClickOnce Dialog Bypass - Microsoft Edge Chromium: I am trying to follow a set of instructions that were provided by a vendor to bypass a pop-up dialog box. I am performing these steps in Windows Server 2016 Standard. The instructions are as follows:1. Download and install the Enterprise Site List Manager tool from...
  8. ClickOnce Dialog Bypass - Microsoft Edge Chromium

    in Windows 10 Software and Apps
    ClickOnce Dialog Bypass - Microsoft Edge Chromium: I am trying to follow a set of instructions that were provided by a vendor to bypass a pop-up dialog box. I am performing these steps in Windows Server 2016 Standard. The instructions are as follows:1. Download and install the Enterprise Site List Manager tool from...
  9. Signed ClickOnce app always flags as unsafe.

    in Windows 10 Software and Apps
    Signed ClickOnce app always flags as unsafe.: I am distributing a ClickOnce app via an external website. it is properly signed with a Sectigo key, but Windows always flags it with a warning and my users have to say "run anyway". I saw somewhere that that message would go away as the app accumulated some "security...
  10. ClickOnce Install failing with "The network path was not found"

    in Windows 10 Network and Sharing
    ClickOnce Install failing with "The network path was not found": We have users setup around the world. We have an app that is deployed via ClickOnce. For the majority of our users this app deploys and installs fine when they run the setup.exe from the server. However, one region is getting the error "the network path was not found"....