Re: Medium Level Trust and Reflection

From: Nicole Calinoiu (calinoiu)
Date: 02/25/05


Date: Fri, 25 Feb 2005 17:40:45 -0500

Depends on whether the code that's being called makes a link demand or full
demand. If it's a full demand, then an assertion will be required, but
assertion permission can be acquired by the same means as reflection
permission.

"Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com> wrote
in message news:%231XfeZ4GFHA.3088@tk2msftngp13.phx.gbl...
> Won't he need to assert the permissions he's using to if he wants to
> prevent a stack walk? That would apply in either situation (GAC or
> non-GAC) if his assembly had permissions that the rest of the application
> did not by default, right?
>
> Joe K.
>
> "Nicole Calinoiu" <calinoiu REMOVETHIS AT gmail DOT com> wrote in message
> news:u3y8$I4GFHA.3352@TK2MSFTNGP10.phx.gbl...
>> Have you tried adding it to the GAC? Did it work? If so, would you
>> stiff
>> prefer an alternate approach? For example, you might try to alter the
>> web_mediumtrust.config to grant additional permissions to your assembly
>> based on its
>> strong name.
>>
>>
>> "Paul Hatcher" <phatcher@spamless.cix.co.uk> wrote in message
>> news:Oy8Y4M1GFHA.2744@tk2msftngp13.phx.gbl...
>>> Is there any way of granting a specific assembly Reflection permission
>>> when
>>> the web server is set to Medium level trust? The assembly is signed and
>>> may
>>> be placed in the GAC if necessary
>>>
>>> Paul
>>>
>>>
>>
>>
>>
>
>



Relevant Pages

  • Re: security exception for aspx page
    ... permission that is being demanded is. ... demand is called so that the stack walk is stopped (note, ... - Create your own assembly that goes in the GAC that wraps their assembly ...
    (microsoft.public.dotnet.security)
  • Re: Medium Level Trust and Reflection
    ... The default medium trust level grants full trust to code in the GAC so, ... reflection permission since ASP.NET will probably cause a weakly named ... However, assertions are potentially risky, so a declarative assertion is not ... Modify the web_mediumtrust.config to grant Assertion and Reflect ...
    (microsoft.public.dotnet.security)
  • Re: Medium Level Trust and Reflection
    ... Assert the Reflection permission declaratively in the code. ... Modify the web_mediumtrust.config to grant Assertion and Reflect ... > that demanded the Reflection permission did a full demand or not, ...
    (microsoft.public.dotnet.security)
  • about permissions
    ... Assert vs Demand ... With assert, the immediate caller must have permission to ...
    (microsoft.public.cert.exam.mcad)
  • Re: Security Exception
    ... > the connecting users according to the Local Users and Groups on ... > permission = permission.Union(new PrincipalPermission(null, ... Demand() method does. ... or not the role and ID of the PrincipalPermission match ...
    (microsoft.public.dotnet.framework.aspnet)