Re: strong name exception on SecurityAction.Demand, works fine for LinkDemand
- From: Dominick Baier [DevelopMentor] <dbaier@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 29 Dec 2005 07:04:52 -0800
Hi,
you know that SNIP really only has teeth when the client is partially trusted?
- in fact the behaviour has changed in 2.0 that fully trusted code always passes SNIP demands.
i wouldn't invest in this feature.
but this doesn't answer your question -
a demand triggers a full stack walk
i guess you signed your code behind assembly?
so the page class (not signed) derives from the code behind class (signed) to call into a SNIP demand - the stack walk fails when the page class is reached.
--------------------------------------- Dominick Baier - DevelopMentor http://www.leastprivilege.com
Hi, I have a component that is protected by the StrongNameIdentityPermission. I m calling this component from a web application that has the appropriate strong name. I noticed that calling the component fails when the SecurityAction.Demand is on, while it succeeds when SecurityAction.LinkDemand is on. Since I m calling the component directly from my application, I was wondering , what could be in the method stack that is causing the demand to fail. Is there a way to make it work ? Regards
*** Sent via Developersdex http://www.developersdex.com ***
.
- Follow-Ups:
- Re: strong name exception on SecurityAction.Demand, works fine for LinkDemand
- From: Joe Abou Jaoude
- Re: strong name exception on SecurityAction.Demand, works fine for LinkDemand
- References:
- strong name exception on SecurityAction.Demand, works fine for LinkDemand
- From: Joe Abou Jaoude
- strong name exception on SecurityAction.Demand, works fine for LinkDemand
- Prev by Date: Re: LDAP and SASL
- Next by Date: Re: ASP.NET 2.0 Profile/Membership/Forms Authentication - Manual L
- Previous by thread: strong name exception on SecurityAction.Demand, works fine for LinkDemand
- Next by thread: Re: strong name exception on SecurityAction.Demand, works fine for LinkDemand
- Index(es):
Relevant Pages
|
|