I tried to install a click once application from my own windows service using
InPlaceHostingManager
added code to install the application while starting the service but an exception throws
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.InPlaceHostingManager.AssertApplicationRequirements(Boolean grantApplicationTrust) at System.Deployment.Application.InPlaceHostingManager.AssertApplicationRequirements() at WindowsService1.ClickOnceInstaller.iphm_GetManifestCompleted(Object sender, GetManifestCompletedEventArgs e)
the code works fine when calling from a sample windows application.
How can i solve this?