Re: calling fully trusted assembly from partially trusted appDomain
- From: "Joe Kaplan" <joseph.e.kaplan@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 11 Nov 2007 10:00:50 -0600
Yes, it is possible to do this (although it does imply a security risk).
The main thing is that the fully trusted assembly needs to Assert the
permission that will be demanded by the underlying framework, perform the
protected operation and then revert the assert.
In many cases, your assembly will also need the
AllowPartiallyTrustedCallersAttribute applied to it.
Joe K.
--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
"ShaiH" <ShaiH@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:5F604637-69B8-4991-8068-7A29CFC0E129@xxxxxxxxxxxxxxxx
Hi,
Is it possible to call a fully trusted code that performs actions that the
partially trusted appDomain running code is not allowed to run?
Here is my scenario:
1. create an appDomain which is restricted from writing to a specific
file.
2. I want this appDomain to call another assembly (my assembly) that will
perform the file writing for the partially trusted appDomain.
Although my assembly has full trust on the machine I still get a security
exception when trying to write to the file...
Is there any way of making this scenario work???
Thanks
Shai
.
- Prev by Date: Australian Standard AS2805.5 DES encryption
- Next by Date: Enforce specific client certificate on WCF service
- Previous by thread: Australian Standard AS2805.5 DES encryption
- Next by thread: Re: calling fully trusted assembly from partially trusted appDomain
- Index(es):