New Install, SessionState error, discountasp.net

Topics: ASP.NET 2.0
Dec 28, 2007 at 3:39 PM
I have managed to download and install (ftp) up to my hosting provider version 1.3.

I have it working fine except for when I go to edit a post or create a new post when I try to save the changes, it gives me a sessionState error complaining about sessionState needing to be enabled. I understand that discountasp.net does by default enable sessionState mode="inproc". I've tried adding and enabling sessionState in the blogEngine web.config, but then the blog fails to load.



Here is what I tried adding to the web.config file for the blogengine site within the system.web tags.

<sessionState mode="InProc"
cookieless="true"
timeout="20"/>
</sessionState>


Here is more details on the error message I receive:
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.


Line 180: post.Save();
Line 181:
Line 182: Session.Remove("content");
Line 183: Session.Remove("title");
Line 184: Session.Remove("description");



This is set up as a subfolder (application) within the main web site.

Any help or comments would be appreciated.

Thanks,

Tim