PDA

View Full Version : FormsAuthentication.Global class error


chelvis
07-13-2006, 03:57 PM
When I run one of my application, I am getting the following error:

Compiler Error Message: CS0234: The type or namespace name 'Global' does not exist in the class or namespace 'System.Web.Security.FormsAuthentication' (are you missing an assembly reference?)

Source Error:
Line 26:
Line 27: [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
Line 28: public class Global_asax : FormsAuthentication.Global {
Line 29:
Line 30: private static bool __initialized = false;

I checked the namespaces and there are there (using System.Web.Security)

What else can I check for? How do I make sure the namespace "FormsAuthentication" has Global class?

Brandoe85
07-13-2006, 04:17 PM
It doesn't appear to have one:
http://msdn2.microsoft.com/en-us/library/system.web.security.formsauthentication.aspx
and here's the members:
http://msdn2.microsoft.com/en-us/library/system.web.security.formsauthentication_members.aspx

Did you add in that part of the code?

If you post your project, I can take a look as well.