O'Reilly logo

Microsoft® Visual J#™ .NET (Core Reference) by John/Longshaw, Andy Sharp

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

.NET and COM+ Security

COM+ defines its own security mechanisms, mapping the identity of the client process to its own custom roles. The scheme used by .NET is similar, but it is implemented by the common language runtime. The System.EnterpriseServices namespace provides classes and enumerations that allow you to bridge the gap between the two systems. Before we look at how to implement COM+ security from managed code in a serviced component, it is worth reviewing the requirements and models used by .NET and COM+.

Code Access Security Requirements

Despite the fact that you use the .NET Framework Class Library to build serviced components, an application that instantiates a serviced component must be granted the UnmanagedCode privilege. This means ...

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