Custom CAS permission...
- From: "Pieter Philippaerts" <pieter.nospam@xxxxxxxxxxxx>
- Date: Sat, 3 Jun 2006 21:05:06 +0200
Hi there,
I've created a custom CAS permission in my .NET 2.0 application, but I'm
having some problems to get it to work properly.
I've based the design of my code on the article at
http://msdn2.microsoft.com/en-us/library/yctbsyf4(VS.80).aspx Everything
seems to be in order and pretty much the same as in the article. I've
compiled the code, installed it in the GAC and adjusted the CAS policy to
give my permission to the Local Intranet zone. Up until now, everything
seems to work properly.
However, when I run a partially trusted application (from a shared intranet
drive) that calls into the library and requires my custom permission, the
demand always fails. The IsSubsetOf method is called once during the demand,
but the target parameter is always a null reference.
Does anyone know why this could be happing? I'd assume that this happens
because my custom permission wasn't granted to the application, however when
I use the "Evaluate Assembly..." option from the Runtime Security Policy
tool, I see that my permission should indeed be granted to the application.
Thanks,
Pieter
.
- Follow-Ups:
- Re: Custom CAS permission...
- From: Nicole Calinoiu
- Re: Custom CAS permission...
- Prev by Date: 3des bad data in web farm environment
- Next by Date: Re: Triple DES Bad Data Error Please Help!!!!
- Previous by thread: 3des bad data in web farm environment
- Next by thread: Re: Custom CAS permission...
- Index(es):
Relevant Pages
|