Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Global.asax visibility
Message
 
À
03/05/2008 08:06:34
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01314860
Message ID:
01315077
Vues:
13
>
>And in the Application_Start Event handler
>App = New MyApplication.Web.Main.WebApp()
>
>When I try to access this member with the full path as suggested I get
>"Access of a shared member,... through an instance; expression will not be evaluated."
>
>Therefore is it because the Application_Start event handler which initialized the member may not be available yet since it is part of the instance of Global.asax?
>

Application_Start happens pretty early in the init cycle, so it should be set by the time you'd normally access it (depending on where you're trying this, of course. From a normal ASPX page it should have already fired).

Is WebApp or the method you're accessing already static/shared? That would give you an error like this (and really, if it's already flagged that way there isn't any reason to hold an instance of the class in Global.asax, which is the point of the error).
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform