Microsoft KB Archive/821785

= Information about the AuthenticationManager.Register method is not complete =

Article ID: 821785

Article Last Modified on 5/24/2007

-

APPLIES TO


 * Microsoft Visual Studio .NET 2003 Enterprise Architect
 * Microsoft Visual Studio .NET 2003 Enterprise Developer
 * Microsoft Visual Studio .NET 2003 Academic Edition
 * Microsoft Visual Studio .NET 2002 Professional Edition
 * Microsoft Visual Studio .NET 2002 Enterprise Architect
 * Microsoft Visual Studio .NET 2002 Enterprise Developer
 * Microsoft Visual Studio .NET 2002 Academic Edition
 * Microsoft .NET Framework 1.1
 * Microsoft .NET Framework 1.0

-





SUMMARY
The Microsoft .NET Framework Class Library documentation for the AuthenticationManager.Register method is not complete. The following additional information is missing from the documentation:

An application can call the AuthenticationManager.Register method only if the level of trust that is granted to the application is FullTrust.

For more information about the AuthenticationManager class and the members of AuthenticationManager, see the &quot;REFERENCES&quot; section of this article.



MORE INFORMATION
When an application that is not granted FullTrust permissions calls the AuthenticationManager.Register method, an exception that is similar to the following appears:

An unhandled exception of type 'System.Security.SecurityException' occurred in mscorlib.dll Additional information: Request for the permission of type System.Security.Permissions.SecurityPermission, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.

When an application is granted a security level of FullTrust, the application can access all the system resources. The level of trust that is granted to an application depends on the zone where the code originates. By default, for example, the code that originates from the local computer is granted FullTrust permissions. You can use the .NET Framework Configuration Tool to configure the level of trust that is granted for a particular zone. To grant FullTrust permissions for your application, set the level of trust for the zone where the code originates to FullTrust. For more information, see the Microsoft Knowledge Base article that is mentioned in the &quot;REFERENCES&quot; section of this article.

