Hi,
I've run in to a this problem regarding Sessions in asp.net. I'm creating an ASP.Net web application. I've created a class called BasePage that inherits from System.Web.Ui.Page. This BasePage class is a System.Web.Ui.Page with an additional member called ActiveUser of type ActiveUser (a class I've created of my own). In the constructor of BasePage I set the member ui to this.ui = (ActiveUser)Session["ActiveUser"]
, which is a session var that is previously set. However, when I run my project i get a HttpException
in BasePage's constructor on this.ui = Session["ActiveUser"]
. It tells me to check however enableSessionState is set to true in the config file, which I've checked that it is. Do anyone have any idéas on how to solve this one? It would be very much appreciated.
Thanx!