[Mono-dev] Embeded : Enable CAS

Sebastien Pouliot sebastien.pouliot at gmail.com
Tue Jan 26 17:32:11 EST 2010

On Tue, 2010-01-26 at 22:52 +0100, Damien wrote:
> Hi, 
> I would like to know if and how it is possible to activate code access
> security with Mono used as an embeded library...

For fun ? maybe. For profit ? not likely.

Seriously CAS is unsupported, it's some missing features (see the wiki
and bugzilla) and, more importantly, the class libraries don't have all
the required (or even correct) permissions. At the end it really depends
on how much time you're willing to invest in making it work (it
definitively won't be plug-and-play) but I don't recommend it (even for
fun ;-)

A *much more* interesting approach is to use CoreCLR (the transparency
model) that is being used by Moonlight (just like it exist in
Silverlight). You even get reviewed class libraries (albeit a more
limited profile) on a supported feature. If you need more (than the 2.1
profile) then it's not-too-hard to extend (tools exists) and you could
plug additional policies on top of other features (think of the socket


p.s. the wiki has a lot of info about moonlight / coreclr and even CAS
(a bit dated but so is the code)

More information about the Mono-devel-list mailing list