Really hope that someone can help me out with this problem as I've been banging my head against the wall for the last 5 hours or so. I've written a URL Rewriting HttpModule for a client and it all works fine in the development environment, but when I upload it to IIS 7 on my server it starts to complain (no surprise there then). The error that is getting thrown is :
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.
It only happens in the IIS 7 and when I use the URL Rewriting (if I go the page directly everything is fine). I can actually use the Session fine in the actual page but the error is being thrown through a custom control that is being used for the menuheader and it needs to know about the session. I've tried many things including putting all the enableSessionState directives into the web.config and the page directive and even someone saying that this was a bug in x64 machines and that I had to write a verificationCompatibilty entry into the registry.
The thing I don't understand is why it's not
View Complete Post