Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Global.asax file
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00694438
Message ID:
00694625
Vues:
15
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform