安装点击一次应用程序,我试图从使用 问题在使用Windows服务
添加代码来安装应用程序,同时启动该服务我自己的Windows服务安装点击一次申请,但异常抛出
System.Deployment.Application.TrustNotGrantedException:用户有 拒绝向应用程序授予所需的权限。在在 System.Deployment.Application.ApplicationTrust.RequestTrust(SubscriptionState 子状态中,布尔isShellVisible,布尔isUpdate,ActivationContext actCtx,TrustManagerContext TMC)在 System.Deployment.Application.DeploymentManager.DetermineTrustCore(布尔 阻挡,TrustParams TP)在 System.Deployment.Application.InPlaceHostingManager.AssertApplicationRequirements() 在WindowsService1.ClickOnceInstaller.iphm_GetManifestCompleted System.Deployment.Application.DeploymentManager.DetermineTrust(trustParams trustParams)在 System.Deployment.Application.InPlaceHostingManager.AssertApplicationRequirements(布尔 grantApplicationTrust) (OB ject sender,GetManifestCompletedEventArgs e)
代码从示例Windows应用程序调用时工作正常。
我怎样才能解决这个问题?
Sory,仍然收到相同的错误 – Sumeshk