O'Reilly logo

Windows Forms Programming in C# by Chris Sells

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Partially Trusted Assembly Considerations

As I mentioned earlier in this chapter, by default .NET code deployed over the Web will be awarded a smaller set of permissions than code launched directly from the hard drive in the MyComputer zone. Any assembly, whether it's an .exe or a .dll, that's launched from the MyComputer zone will be fully trusted by default, and this means that it can do anything that the launching user is allowed to do. Assemblies deployed from the Web, on the other hand, will be partially trusted, because they aren't allowed to do everything. If you're building assemblies that are designed to work in a partially trusted environment, you need to take this into account, or else your users will see a lot of security exceptions. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required