…Session state can only be used when enableSessionState is set to true…

I am using VS2008 in a Vista Ultimate environment.  Here is the complete error message:
”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.”

NONE of that was the problem!  I even verified that SessionState was running as a service, which it was!

Okay, what is the [workaround]?

Navigate to:
Control Panel > Programs > Turn Windows features on or off

When that dialog-box finishes loading, expand:
Internet Information Services > Web Management Tools > IIS 6.0 Management Compatibility

Make sure the following two check-boxes are checked:
IIS 6 WMI Compatibility
IIS Metabase and IIS 6 configuration compatibility

And Viola!  Problem solved!  That was a two-hour ordeal for our team!  Hope I saved you some time!

Print | posted on Sunday, September 6, 2009 5:00 PM

Feedback

# re: …Session state can only be used when enableSessionState is set to true…

Left by HydTechie at 8/20/2013 8:15 AM
Gravatar Please GEEKS!,
Would you think somebody posted this question might have even checked this funda?

To all sufferers of this problem, I have my findings here!
1. I could reproduce this issue in IE browser(IE10) and FIREFOX(22), though I have great settings of all enabled..etc.etc... in my local code, WHEN IE settings in Connection Tab --> LAN settings have "Use PROXY Server for Localhost..." checkbox shown as CHECKED - without a VALID PROXY server setting...

When I uncheck this In IE, the same code with DEFAULT Session settings, runs like HORSE!!

Doom to all GEEKS OUT THERE...

But for common people, IT WAS GIVING NIGHTMARES TO ME, hope I could save a few out of yours!

Peace!
Let me know your observations!

# re: …Session state can only be used when enableSessionState is set to true…

Left by HydTechie at 8/26/2013 10:39 AM
Gravatar 1. Could be your skype intercepting your requests at 80 port, in Skype options uncheck
2. Or Your IE has connection checked for Proxy when there is no proxy
3. Or your fiddler could intercept and act as proxy, uncheck it!

Solves the above problem, It solved mine!

HydTechie

Your comment:





 

Copyright © intermark

Design by Bartosz Brzezinski

Design by Phil Haack Based On A Design By Bartosz Brzezinski