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. Clickonce and .NET 9

    in Windows 10 Gaming
    Clickonce and .NET 9: Hi, After updating our application to use .NET 9 previously .NET framework 4.8 the clickonce application manifest creation shows error like this: "Internal error, please try again. Object reference not set to an instance of an object. Cmd.exe exited with code '2'." Is there...
  3. Clickonce and .NET 9

    in Windows 10 Software and Apps
    Clickonce and .NET 9: Hi, After updating our application to use .NET 9 previously .NET framework 4.8 the clickonce application manifest creation shows error like this: "Internal error, please try again. Object reference not set to an instance of an object. Cmd.exe exited with code '2'." Is there...
  4. Clickonce and .NET 9

    in Windows 10 BSOD Crashes and Debugging
    Clickonce and .NET 9: Hi, After updating our application to use .NET 9 previously .NET framework 4.8 the clickonce application manifest creation shows error like this: "Internal error, please try again. Object reference not set to an instance of an object. Cmd.exe exited with code '2'." Is there...
  5. System restore went wrong

    in Windows 10 Gaming
    System restore went wrong: I did A system restore on my Laptop. After it was done and I went over to get it set up again and it was on Other user to sign in to windows. Well, it won't take my sign info. And so I came on here to look up some threads. I found one and I did what it said to Do but I can't...
  6. System restore went wrong

    in Windows 10 Software and Apps
    System restore went wrong: I did A system restore on my Laptop. After it was done and I went over to get it set up again and it was on Other user to sign in to windows. Well, it won't take my sign info. And so I came on here to look up some threads. I found one and I did what it said to Do but I can't...
  7. System restore went wrong

    in Windows 10 Installation and Upgrade
    System restore went wrong: I did A system restore on my Laptop. After it was done and I went over to get it set up again and it was on Other user to sign in to windows. Well, it won't take my sign info. And so I came on here to look up some threads. I found one and I did what it said to Do but I can't...
  8. 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...
  9. 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...
  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"....