Click here to Skip to main content
15,890,186 members
Home / Discussions / C#
   

C#

 
GeneralRe: Is there a difference? Pin
Dave Kreskowiak2-Mar-04 13:33
mveDave Kreskowiak2-Mar-04 13:33 
GeneralRe: Is there a difference? Pin
Colin Angus Mackay2-Mar-04 13:38
Colin Angus Mackay2-Mar-04 13:38 
AnswerRe: Is there a difference? Pin
Meysam Mahfouzi2-Mar-04 17:55
Meysam Mahfouzi2-Mar-04 17:55 
GeneralRe: Is there a difference? Pin
sps-itsec463-Mar-04 8:48
sps-itsec463-Mar-04 8:48 
GeneralRe: Is there a difference? Pin
Meysam Mahfouzi3-Mar-04 17:27
Meysam Mahfouzi3-Mar-04 17:27 
GeneralHELP with Code Access Security! Pin
Throckmorton2-Mar-04 11:10
Throckmorton2-Mar-04 11:10 
GeneralRe: HELP with Code Access Security! Pin
Heath Stewart2-Mar-04 12:19
protectorHeath Stewart2-Mar-04 12:19 
GeneralRe: HELP with Code Access Security! Pin
Throckmorton2-Mar-04 13:58
Throckmorton2-Mar-04 13:58 
Thanks Heath -

I hate to ask but given that I am a total noob at this - can you provide (or point me to) a more specific example of enumerating the PolicyHierarchy and searching for specific groups? I am unable to actually resolve specific group names or at least cannot figure out how to.

Right now I have:
IEnumerator levels = SecurityManager.PolicyHierarchy();
while(levels.MoveNext())
{
PolicyLevel pl = (PolicyLevel)levels.Current;
Console.WriteLine("Policy Level: {0}", pl.Label);
}

Which prints:
Policy Level: Enterprise
Policy Level: Machine
Policy Level: User

I see a method in there called ResolveMatchingCodeGroups() but it wants an "evidence" and no matter what I try in the Evidence object it always returns the same things, something like:
All_Code
All_Code
All_Code

I want to check if "MyCustomCodeGroup" exists. It is located here:
- Runtime Security Policy
    - Machine
        - Code Groups
            - All_Code
                - LocalIntranet_Zone
                    - MyCustomCodeGroup


The membership condition type is "URL" and the URL is "file://MyServer/*".

The permission set on this group is FullTrust.


As for the other part of your reply - The appdomain/assembly stuff is complete greek to me. I will have to learn more about it. However I would say that the local exe calls remote exe's. The remote exe's can be managed code but also they can be .cmd/.bat files or even .msi, or .exe (C++ apps).

Thanks for your help,

Ian
GeneralRe: HELP with Code Access Security! Pin
Throckmorton2-Mar-04 17:23
Throckmorton2-Mar-04 17:23 
GeneralRe: HELP with Code Access Security! Pin
Heath Stewart3-Mar-04 3:27
protectorHeath Stewart3-Mar-04 3:27 
GeneralRe: HELP with Code Access Security! Pin
Throckmorton3-Mar-04 9:19
Throckmorton3-Mar-04 9:19 
GeneralRe: HELP with Code Access Security! Pin
Heath Stewart3-Mar-04 9:27
protectorHeath Stewart3-Mar-04 9:27 
GeneralRe: HELP with Code Access Security! Pin
Throckmorton3-Mar-04 10:11
Throckmorton3-Mar-04 10:11 
GeneralRe: HELP with Code Access Security! Pin
Heath Stewart3-Mar-04 10:16
protectorHeath Stewart3-Mar-04 10:16 
Generalproblems in running app at win startup Pin
visiontec2-Mar-04 10:22
visiontec2-Mar-04 10:22 
GeneralRe: problems in running app at win startup Pin
Dave Kreskowiak2-Mar-04 11:12
mveDave Kreskowiak2-Mar-04 11:12 
GeneralClient size of an control ... Pin
Andres Coder2-Mar-04 7:49
Andres Coder2-Mar-04 7:49 
GeneralRe: Client size of an control ... Pin
Heath Stewart2-Mar-04 9:24
protectorHeath Stewart2-Mar-04 9:24 
Generalinternet explorer Pin
cmarmr2-Mar-04 7:27
cmarmr2-Mar-04 7:27 
GeneralRe: internet explorer Pin
Heath Stewart2-Mar-04 9:39
protectorHeath Stewart2-Mar-04 9:39 
GeneralRe: internet explorer Pin
cmarmr2-Mar-04 9:55
cmarmr2-Mar-04 9:55 
GeneralRe: internet explorer Pin
Heath Stewart2-Mar-04 10:00
protectorHeath Stewart2-Mar-04 10:00 
GeneralRemoting: sharing an object Pin
Judah Gabriel Himango2-Mar-04 7:24
sponsorJudah Gabriel Himango2-Mar-04 7:24 
GeneralRe: Remoting: sharing an object Pin
Heath Stewart2-Mar-04 9:21
protectorHeath Stewart2-Mar-04 9:21 
QuestionHow To: Wizard for my Application Pin
Ritesh Sompura2-Mar-04 7:01
Ritesh Sompura2-Mar-04 7:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.