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]?
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!