Information about the AuthenticationManager.Register method is not complete (821785)



The information in this article applies to:

  • Microsoft Visual Studio .NET (2003), Enterprise Architect Edition
  • Microsoft Visual Studio .NET (2003), Enterprise Developer Edition
  • Microsoft Visual Studio .NET (2003), Academic Edition
  • Microsoft Visual Studio .NET (2002), Professional Edition
  • Microsoft Visual Studio .NET (2002), Enterprise Architect Edition
  • Microsoft Visual Studio .NET (2002), Enterprise Developer Edition
  • 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 "REFERENCES" 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 "REFERENCES" section of this article.

REFERENCES

For more information, visit the following Microsoft Developer Network (MSDN) Web sites: For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

315529 HOW TO: Demand Permissions by Using Code Access Security


Modification Type:MinorLast Reviewed:2/1/2006
Keywords:kbvs2005swept kbvs2005doesnotapply kbDocs kbMiscTools kbSecurity kbAuthentication kbdocerr KB821785 kbAudDeveloper