Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Global.asax visibility
Message
 
To
03/05/2008 08:06:34
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01314860
Message ID:
01315077
Views:
12
>
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform