Microsoft KB Archive/821784

From BetaArchive Wiki

Article ID: 821784

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 Professional Edition
  • Microsoft Visual Studio .NET 2003 Academic Edition
  • Microsoft .NET Framework 1.1
  • Microsoft .NET Framework 1.0
  • Microsoft Visual Studio .NET 2002 Enterprise Architect
  • Microsoft Visual Studio .NET 2002 Enterprise Developer
  • Microsoft Visual Studio .NET 2002 Professional Edition
  • Microsoft Visual Studio .NET 2002 Academic Edition



SUMMARY

In the Microsoft .NET Framework Class Library documentation, the content in the Microsoft Help topic for AuthenticationManager.Unregister method is not complete.

For more information, visit the following Microsoft Developer Network (MSDN) Web site:

MORE INFORMATION

The existing documentation states:

Removes authentication modules from the list of registered modules.


The existing documentation should also include the following information:

You can call the AuthenticationManager.Unregister method from your application only if you set the trust level of your application to Full Trust. To do so, run your application from a security zone that has the level of trust set to Full Trust, or set the level of trust for the security zone where your application belongs to Full Trust. To set the level of trust for the security zone where your application belongs, follow these steps:


Microsoft Windows 2000

  1. Click Start, and then point to Programs.
  2. For the Microsoft .NET Framework 1.1, point to Administrative Tools, and then click Microsoft .NET Framework 1.1 Configuration. For the Microsoft .NET Framework 1.0, point to Administrative Tools, and then click Microsoft .NET Framework Configuration.
  3. In the left pane, expand Runtime Security Policy.
  4. In the right pane, click the Adjust Zone Security link.
  5. Click to select the Make changes to this computer check box, or click to select the Make changes for the current user only check box, and then click Next.
  6. Select the security zone where your application belongs. For example, if your application belongs to the My Computer security zone, select My Computer.
  7. Drag the vertical slider to set the level of trust to Full Trust, and then click Next.
  8. Click Finish to update the settings for the security zone where your application belongs.

Microsoft Windows XP

  1. Click Start, and then click Control Panel.
  2. Click the Performance and Maintenance link, and then click the Administrative Tools link.
  3. For the Microsoft .NET Framework 1.1, double-click Microsoft .NET Framework 1.1 Configuration. For the Microsoft .NET Framework 1.0, double-click Microsoft .NET Framework Configuration.
  4. In the left pane, expand Runtime Security Policy.
  5. In the right pane, click the Adjust Zone Security link.
  6. Click to select the Make changes to this computer check box, or click to select the Make changes for the current user only check box, and then click Next.
  7. Select the security zone where your application belongs. For example, if your application belongs to the My Computer security zone, select My Computer.
  8. Drag the vertical slider to set the level of trust to Full Trust, and then click Next.
  9. Click Finish to update the settings for the security zone where your application belongs.

Microsoft Windows Server 2003

  1. Click Start, and then point to Administrative Tools.
  2. For the Microsoft .NET Framework 1.1, click Microsoft .NET Framework 1.1 Configuration. For the Microsoft .NET Framework 1.0, click Microsoft .NET Framework Configuration.
  3. In the left pane, expand Runtime Security Policy.
  4. In the right pane, click the Adjust Zone Security link.
  5. Click to select Make changes to this computer, or click to select the Make changes for the current user only check box, and then click Next.
  6. Select the security zone where your application belongs. For example, if your application belongs to the My Computer security zone, select My Computer.
  7. Drag the vertical slider to set the level of trust to Full Trust, and then click Next.
  8. Click Finish to update the settings for the security zone where your application belongs.

Note In Visual Studio .NET 2003, if you call the AuthenticationManager.Unregister method from your application when your application does not have Full Trust, you may receive the following error message:

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.

In Visual Studio .NET 2002, if you call the AuthenticationManager.Unregister method from your application when your application does not have Full Trust, you may receive the following error message:

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.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.

REFERENCES

For more information, visit the following Microsoft Developer Network (MSDN) Web sites:

AuthenticationManager Class
http://msdn2.microsoft.com/en-us/library/system.net.authenticationmanager(vs.71).aspx

.NET Framework Configuration Tool (Mscorcfg.msc)
http://msdn2.microsoft.com/en-us/library/2bc0cxhc(vs.71).aspx


Keywords: kbvs2005applies kbvs2005doesnotapply kbvs2002sp1sweep kbsecurity kbsdk kbpolicy kbmisctools kbconfig kbauthentication kbdocs kbprogramming kbdocfix kbdocerr kbbug KB821784