Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...PageLoadException: Session state can only be used when enableSessionState is set to truePageLoadException: Session state can only be used when enableSessionState is set to true
Previous
 
Next
New Post
1/26/2014 9:15 PM
 

I upgraded from 6.2.9 to 7.2 and then 7.2.1, friendly urls set to advanced, been through the process of setting up the custom 404 page (AUM_ErrorPage404 setting in portalsettings). 

The problem I have, is that I get a pageload exception every time I navigate to a non existent page. This happens whether or not the AUM_ErrorPage404 setting is present :

DotNetNuke.Services.Exceptions.PageLoadException: 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. ---> 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. at System.Web.UI.Page.get_Session() at DotNetNuke.Framework.CachePageStatePersister.Save() at System.Web.UI.Page.SaveAllState() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---

 

I've been through the web.config the settings are correct :

    <modules runAllManagedModulesForAllRequests="true">
      <remove name="Session" />
      <add name="Session" type="System.Web.SessionState.SessionStateModule"/>      

...

 

     <httpModules>
      <add name="Session" type="System.Web.SessionState.SessionStateModule"  />

...

    <pages validateRequest="false" enableViewStateMac="true" enableEventValidation="false" viewStateEncryptionMode="Always" enableSessionState="true" >


My 404 page just has a html module with nothing special. 

I've spent a day on this now and gotten nowhere. I have removed any unused modules, updated to the latest on the third party modules, spent ages diffing my web.config with a fresh install... all to no avail. Anyone have any idea what could cause this?  

Regards

Vincent.

 

 
New Post
1/27/2014 7:11 AM
 

For reference,  I resolved this issue by changing the Page State Persistence setting to Page (was set to memory).  Hope it helps someone else.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...PageLoadException: Session state can only be used when enableSessionState is set to truePageLoadException: Session state can only be used when enableSessionState is set to true


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out