Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
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.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - System.Deployment.Application.InPlaceHostingManager.AssertApplicat

Reply
 
Old 03-09-2009   #1 (permalink)
Rui


 
 

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 SpecsSystem Spec
Reply

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


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46