Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Could not load type 'MyProject.Global'
Message
 
 
To
09/10/2003 17:44:07
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00837143
Message ID:
00837184
Views:
35
>I built an ASP.NET application. By default, it created some files in the directory. One of them is global.asax. This file is called whenever an aspx file is launched in the browser. From my project, the content of this file is:
>
>
>< @ Application Codebehind="Global.asax.vb" Inherits="MyProject.Global">
>
>
>When I load a test.aspx file, I get:
>
>"Could not load type 'MyProject.Global'"
>
>MyProject.Global doesn't exist. Is this a file I have to create manually? If yes, what are to be in it? If not, why is this file not existing?


Forgot to add, that obviously the global.asax.vb should have class Global.

That is where the Inherits directive gets the entire name.

HTH.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform