Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Global.asax file
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00694438
Message ID:
00694625
Views:
16
>You access and retrieve the Application key/values with the
Application["MyObjectName"]
syntax. You need to cast to the appropriate type as needed.
>
>In the Application_Start you need to create a new reference to your security object that will be stored in the Application key/value called something like "Security". Then when you access the object, you will need to cast it to the security type.
>

OK, it looks like my original code was correct then. I did some tracing and what seems to have happened is that my Security class threw an exception that kept the class from being instanciated. So, when I tried grabbing/casting the object reference from Application, it failed (well, it returned a null). Thanks.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Reply
Map
View

Click here to load this message in the networking platform