Saturday, August 21, 2010

URL Rewriting with Session problem

URL Rewriting with Session problem

Using URL Rewriter with session

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 \\ section in the application configuration.




A solution that worked perfectly! Add the following to web.config:









Solution provided by Curt
http://forums.asp.net/t/1499512.aspx

No comments: