asp.net - Not able to resolve EnableSessionState is set to true error in all DNN pages -


i have research in google error couldn't succeed , posted here.

i have downloaded live website, database , integrate in local environment. can see home page not able see other pages. i’m facing below error in other pages.

i think default.aspx home page in dnn working fine not other pages render dynamically dnn tables.

error exception:

session state can used when enablesessionstate set true, either in configuration file or in page directive. please make sure system.web.sessionstatemodule or custom session state module included in \\ section in application configuration.

event log table message:

dotnetnuke.services.exceptions.pageloadexception: session state can used when enablesessionstate set true, either in configuration file or in page directive. please make sure system.web.sessionstatemodule or custom session state module included in <configuration>\<system.web>\<httpmodules> section in application configuration. ---> system.web.httpexception: session state can used when enablesessionstate set true, either in configuration file or in page directive. please make sure system.web.sessionstatemodule or custom session state module included in <configuration>\<system.web>\<httpmodules> section in application configuration. @ system.web.ui.page.get_session() @ dotnetnuke.framework.cachepagestatepersister.save() @ system.web.ui.page.savepagestatetopersistencemedium(object state) @ system.web.ui.page.saveallstate() @ system.web.ui.page.processrequestmain(boolean includestagesbeforeasyncpoint, boolean includestagesafterasyncpoint) --- end of inner exception stack trace ---

i had take reference from this link , update below in web config file missed pages of website , not able see home page also. eventlog table showing me same error message posted in question.

update web config below:

<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" > 

before error:

i have added dnn website sub directory in local iis server access url has become http://localhost/websitename/. of reason in dnn core libraries doesn't work sub directory , faced error enablesessionstate set true, either in configuration file or in page directive in local computer on live, installed default web site on iis server.

error resolved:

just replace website sub directory default web site in iis server , works. didn't error. so, access url become http://localhost/

i checked both websites set in same application pool same dotnet framework version sub directory website doesn't work , when set in place of default iis website works.

for visitors of post:

if don't able solve error, can go cathal connoly (a dnn mvp)'s answer. refer link more information.

it appears if change page state persistence resolve (http://www.dnnsoftware.com/content/dn...) , or else enable set enablesessionstate true in web.config


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -