![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | System.Deployment.Application.InPlaceHostingManager.AssertApplicat I'm using the class InPlaceHostingManager to programmatically run clickonce applications. The following code works fine on Vista if I call the AssertApplicationRequirements with a parameter of true. Without passing true to the AssertApplicationRequirements method I get the error "User has refused to grant required permissions to the application". On XP (with System.Deployment.dll version:2.0.50727.1433) the method AssertApplicationRequirements does not allow me to pass any parameters and I get the same error "User has refused to grant required permissions to the application". Is there a way to get this to work in XP? How do I get the System.Deployment.dll with the new method installed on XP? ApplicationTrust trust = new ApplicationTrust(); PermissionSet set = new PermissionSet(PermissionState.Unrestricted); PolicyStatement ps = new PolicyStatement(set); trust.DefaultGrantSet = ps; trust.ApplicationIdentity = e.ApplicationIdentity; trust.IsApplicationTrustedToRun = true; ApplicationSecurityManager.UserApplicationTrusts.Add(trust); iphm.AssertApplicationRequirements(true); ---- (true) not supported on XP |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Help: "i Windows Defender: A System Change Was Made by a Known Application" After System Start? | Vista General | |||
| Help with Deployment Workbench and Deployment Services | Vista installation & setup | |||
| VB.NET application cliick-once deployment via internet - Error - Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. | .NET General | |||
| Micrsoft Deployment and Vista image deployment.... | Vista installation & setup | |||