I'm running an ASP.NET application on a remote server. The application has a page (page1.aspx) that creates an instance of a class (class1) that creates an instance of a class (class2) that creates an instance of a class (class3). Classic n-tier stuff. When
I try to access a session variable using the System.Web.HttpContext.Current.Session.Item("itemx") method I get a "[NullReferenceException: Object reference not set to an instance of an object.]". The aspx page and all the classes are part of the same ASP.NET
project. I cannot recreate this error using a similar project structure. Any help/hints would be appreciated. Thanks, Phil Graham
philg_ASPNET...
Member
15 Points
3 Posts
System.Web.HttpContext.Current.Session.Item - NullReferenceException
Aug 12, 2003 10:05 AM|LINK