Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Could not load type 'MyProject.Global'
Message
 
 
À
09/10/2003 17:44:07
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00837143
Message ID:
00837181
Vues:
31
>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?


Check your Global.asax.vb file. The Inherits attribute specifies the name of the class to inherit from. This is automatically created by VS.NET when you create your project. From your example, I think the namespace in the code behind file should be:

namespace MyProject

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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform