Re: Custom Principal Permission (non-CodeAccessPermission derived) not working
From: Marcelo Birnbach [MS] (mbirnbac_at_online.microsoft.com)
Date: 06/28/03
- Previous message: Marcelo Birnbach [MS]: "Re: Code Group Security policy deployment"
- In reply to: Olivier Haddad: "Custom Principal Permission (non-CodeAccessPermission derived) not working"
- Next in thread: Olivier Haddad: "Re: Custom Principal Permission (non-CodeAccessPermission derived) not working"
- Reply: Olivier Haddad: "Re: Custom Principal Permission (non-CodeAccessPermission derived) not working"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 27 Jun 2003 15:28:52 -0700
What do you mean with declarative permission is ignored? If you don't add
your permission to the security policy, it's likely that your assembly won't
have this permission and fail on a Demand. Can you explain what are you
trying to do using declarative security and how do you grant your permission
without modifying the security policy?
Thanks,
Marcelo
"Olivier Haddad" <olivier.hadad@emblaze.com> wrote in message
news:OOFFO8wODHA.3700@tk2msftngp13.phx.gbl...
> I wrote a simple class implementing IPermission and a corresponding
> attribute class deriving from SecurityAttribute.
>
> My permission class does not derive from CodeAccessPermission as I am not
> interested in a stack walk (like PrincipalPermission).
>
> I didn't add the assembly to the Security Policy as MSDN states that it is
> not needed for non-CAS permissions.
>
> Imperative permission works fine, but declarative permission is ignored.
> Checking the compiled file with ILDasm and Permview revealed that no XML
> permission metadata was added.
>
> How do I get my Security Attribute derivated class to work?
>
> The MSDN documentation only gives proper examples for CodeAccessSecurity
> derived classes.
>
>
>
- Previous message: Marcelo Birnbach [MS]: "Re: Code Group Security policy deployment"
- In reply to: Olivier Haddad: "Custom Principal Permission (non-CodeAccessPermission derived) not working"
- Next in thread: Olivier Haddad: "Re: Custom Principal Permission (non-CodeAccessPermission derived) not working"
- Reply: Olivier Haddad: "Re: Custom Principal Permission (non-CodeAccessPermission derived) not working"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|