bujjigadu
asked on
Session state can only be used when enablesessionstate is set to true
I got the following error when I try to load aspx page which is loading user control (ascx)
I'm trying to set a session variable in my user control and I get the below error over that step.
I did page enabled =true on my aspx page, web.config and checked IIS the ASP.Net session is enabled. What else can be checked.
I have like this in my web.config file -
"<pages enableSessionState="true" enableViewState="true" enableViewStateMac="true" validateRequest="false" clientIDMode="AutoID" pageParserFilterType="Micr osoft.Shar ePoint.App licationRu ntime.SPPa geParserFi lter, Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e 9429c" asyncTimeout="7">"
ERROR I GOT -
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.SessionStateMod ule or a custom session state module is included in the <configuration>\<system.we b>\<httpMo dules> section in the application configuration.
I'm trying to set a session variable in my user control and I get the below error over that step.
I did page enabled =true on my aspx page, web.config and checked IIS the ASP.Net session is enabled. What else can be checked.
I have like this in my web.config file -
"<pages enableSessionState="true" enableViewState="true" enableViewStateMac="true" validateRequest="false" clientIDMode="AutoID" pageParserFilterType="Micr
ERROR I GOT -
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.SessionStateMod
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.