does anone know what might be causing this.
Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the <configuration>\<system.web>\<httpModules> section in the application configuration.
Stack trace:
" at System.Web.UI.Page.get_Session()\r\n at frmSite.Page_Load(Object sender, EventArgs e) in c:\\Projects\\Version9\\WebClientNew\\Web Cleint\\Home Page\\frmSite.aspx.cs:line 39\r\n at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)\r\n at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)\r\n at System.Web.UI.Control.OnLoad(EventArgs e)\r\n at System.Web.UI.Control.LoadRecursive()\r\n at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)"
The code was working fine and now it doesnt, i dont remember changing anything that might have caused this.
I added the EnablesessionState on the page directive but no change.
Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom session state module is included in the <configuration>\<system.web>\<httpModules> section in the application configuration.
Stack trace:
" at System.Web.UI.Page.get_Session()\r\n at frmSite.Page_Load(Object sender, EventArgs e) in c:\\Projects\\Version9\\WebClientNew\\Web Cleint\\Home Page\\frmSite.aspx.cs:line 39\r\n at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)\r\n at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)\r\n at System.Web.UI.Control.OnLoad(EventArgs e)\r\n at System.Web.UI.Control.LoadRecursive()\r\n at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)"
The code was working fine and now it doesnt, i dont remember changing anything that might have caused this.
I added the EnablesessionState on the page directive but no change.