Search code examples
c#silverlightsecuritysandboxsigned-applet

Silverlight equivalent to signed Java Applet?


Is there a Silverlight equivalent to signed applets in Java?

I'm basically trying to host what would traditionally be a desktop application in a browser*, and I'd rather do it all in a single package (the Silverlight end) rather than delegate privileged actions to an outside (locally running) process. This would require some way of breaking out of Silverlight's sandbox though; the only equivalent I'm aware of are Java's signed applets, and I can't find anything similar.

*There are good usability reasons for this, technically it does complicate things


Solution

  • If you need full access to local resources, Silverlight isn't going to get you there. You could use XBAPs to run in-browser on the "big" CLR, but even there, the security model is painful (you have to run a local install to the GAC to get full trust). You might want to have a look at the forthcoming .NET 4.0 as well- they've redone some of the security layer to simplify things, though I don't know if/how it affects XBAPs. There's a great post about FullTrust XBAPs in .NET 3.5 here.