25 Feb 2008
17 Sep 2010
Link to this post
I have tried to resolve this to no end... I hope you can help.
Our marketing dept. wants to promote landing pages that are part of the website - without the page extension (.aspx)
The part that is causing an error is that I have the login view control on all pages. I can get this to work if the user is not logged in, however, if they hit a page and it doesn't have it's extension, and they are logged in, it will error with either:
"The name 'HTTPContext' doesn not exist in the current context"
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.
I have done everything i can think of.. added <pages enableSessionState="true"> to web.cong, tried using code at the bottom of this page, adding a defualt.aspx page with a redirect under the main page, etc... It is just a problem of landing on the page without the extension...