We have a clickonce winforms application in C # that is given full trust and signed using a valid certificate.
The application works fine and correctly updates in Windows XP, Windows 7. However, on a computer with Windows 8, it simply does not update. The application is working correctly, though. However, the first update request to upgrade to a later version is not executed: System.Deployment.Application.TrustNotGrantedException
The code failed after the call to ApplicationDeployment::CheckForDetailedUpdate() failed. I wonder why this can happen, since exactly the same code works fine in all previous versions of Windows. Any help would be appreciated. The following is the appropriate stack trace:
System.Deployment.Application.TrustNotGrantedException: User has refused to grant required permissions to the application. at System.Deployment.Application.ApplicationTrust.RequestTrust(SubscriptionState subState, Boolean isShellVisible, Boolean isUpdate, ActivationContext actCtx, TrustManagerContext tmc) at System.Deployment.Application.DeploymentManager.DetermineTrustCore(Boolean blocking, TrustParams tp) at System.Deployment.Application.DeploymentManager.DetermineTrust(TrustParams trustParams) at System.Deployment.Application.ApplicationDeployment.CheckForDetailedUpdate(Boolean persistUpdateCheckResult) at System.Deployment.Application.ApplicationDeployment.CheckForDetailedUpdate()
user2039804
source share