- Open the file containing your class Global typically located in the file Global.asax.cs,
- Note the namespace for that file
- Open the file Global.asax
- Locate the line that contains the element "... Application Codebehind=..."
- In that line ensure that the element "Inherits=..." includes the namespace for your Global class, e.g. MyWebSite.Global, (Inherits="MyWebSite.Global"). Replace MyWebSite with the namespace noted in step 2
- Recompile and redeploys.
- The error should be gone.
Comments, how-to's, examples, tools, techniques and other material regarding .NET and related technologies.
Saturday, February 14, 2009
Parser Error Message: Could not load type 'Global'
If you get an error as follows:
"Parser Error Message: Could not load type 'Global'"
then you may be able to fix this issue by doing the following:
It seems you could also get this message if you try to run a project before building it.
ReplyDelete