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.
Try this:
Application_Start
Application["Security"] = new KirtlandAssociates.Web.WebSecurity.Security();
To Access the key/value use
KirtlandAssociates.Web.WebSecurity.Security security = (KirtlandAssociates.Web.WebSecurity.Security)Application["Security"];
-----------------------------------------
Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.comwww.prenia.comWeblog: blogs.prenia.com/cathi