Anyone know how to fix this error? I have mscorlib.dll and put it in C:\Windows\System32 and it still does not work. Help me please.
This is close. If you grant full trust and it still doesn't work. Yell back. Information about the AuthenticationManager.Register method is not complete View products that this article applies to. Article ID : 821785 Last Review : February 1, 2006 Revision : 1.4 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. Back to the top 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. Back to the top REFERENCES For more information, visit the following Microsoft Developer Network (MSDN) Web sites: AuthenticationManager Class http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemnetauthenticationmanagerclasstopic.asp (http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemnetauthenticationmanagerclasstopic.asp) AuthenticationManager.Register Method http://msdn.microsoft.com/library/e...etauthenticationmanagerclassregistertopic.asp (http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemnetauthenticationmanagerclassregistertopic.asp) Administering Security Policy http://msdn.microsoft.com/library/en-us/cpguide/html/cpconadministeringsecuritypolicy.asp (http://msdn.microsoft.com/library/en-us/cpguide/html/cpconadministeringsecuritypolicy.asp) For additional information, click the following article number to view the article in the Microsoft Knowledge Base: 315529 (http://support.microsoft.com/kb/315529/EN-US/) HOW TO: Demand Permissions by Using Code Access Security Back to the top -------------------------------------------------------------------------------- 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