|
kafka -> SessionState is not working (6/13/2006 10:31:21)
|
I am getting this (typical) error message: 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. Now I have set enableSessionState to true and included a System.Web.SessionStateModule in web.config. I have also verified through my IIS manager that session state in enabled and it is set to "InProc" etc etc. so the web.config is certainly working. I am building and testing my application on LocalHost if that makes any difference and it seems to me that when I look at some "code behind" that i didn't write there are Session Variables being used. Now the session variables being used there are in C# while the coding i am doing is in VB if that is a clue. But i am not accessing those same variables. I have been all over the web on this one for two days and is is frustrating me to no end. I appreciate any help. -Lon MORE INFO: 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 21: Dim site_staffDS as DataSet = New DataSet Line 22: Dim handlenull as string = "empty" Line 23: Dim site_key_keep = Session("site_key") Line 24: Line 25: Source File: C:\Inetpub\wwwroot\satellites\site_staff.aspx Line: 23 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() +2025437 ASP.site_staff_aspx..ctor() in C:\Inetpub\wwwroot\satellites\site_staff.aspx:23 __ASP.FastObjectFactory_app_web_qxe_jl5s.Create_ASP_site_staff_aspx() +38 System.Web.Compilation.BuildResultCompiledType.CreateInstance() +49 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +115 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +31 System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +40 System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +139 System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +120 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
|
|
|
|