Server Error in '/' Application.

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.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: 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.

Source Error:


Line 53: 
Line 54:         If hidBasketID.Value = "" Then
Line 55:             If Session("BasketID") = "" Then
Line 56:                 Dim timestamp = CMS.getTimestamp() & "-" & uniquecode
Line 57: 

Source File: D:\websites\$live_sites\pipeandglass.co.uk\MasterPage.master.vb    Line: 55

Stack Trace:


[HttpException (0x80004005): 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.]
   System.Web.UI.Page.get_Session() +166
   MasterPage.checkbasket() in D:\websites\$live_sites\pipeandglass.co.uk\MasterPage.master.vb:55
   MasterPage.Page_Init(Object sender, EventArgs e) in D:\websites\$live_sites\pipeandglass.co.uk\MasterPage.master.vb:19
   System.Web.UI.Control.OnInit(EventArgs e) +106
   System.Web.UI.Control.InitRecursive(Control namingContainer) +166
   System.Web.UI.Control.InitRecursive(Control namingContainer) +370
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1598


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.4087.0