HighTechTalks DotNet Forums  

GAC API Calls with Guest Privileges?

Dotnet Framework (CLR) microsoft.public.dotnet.framework.clr


Discuss GAC API Calls with Guest Privileges? in the Dotnet Framework (CLR) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Sandman
 
Posts: n/a

Default GAC API Calls with Guest Privileges? - 03-14-2006 , 10:10 AM






I'm using the GAC API in C# to install assemblies into the GAC. The code
works fine, if I'm running with Administrator privileges. But, if I run the
app as Guest, the GAC install fails.
I tried giving the application "Full Trust" in CAS, but the install still
fails when I'm Guest.
Currently I use the WindowsIdentity trick to switch user to an Administrator
service account before calling the GAC API code. This seems to work.
Is there any other way of allowing my code to run without Admin privilages?

Thanks

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.