Showing posts with label Manage the State Service. Show all posts
Showing posts with label Manage the State Service. Show all posts

18 May, 2013

Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive- SharePoint2010

What is meant by session state? What exactly its functionality? How it works?

Complete Error Message:
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.

Before you start your troubleshooting, make sure that the State Service service application is running. How you will check this?

-Open your Central Administration
-Manage service applications
- check the service application by the name ‘state service service application’

What exactly I did to resolve this issue? Please refer the following:

2-step resolution:
Make the enableSessionState is set to true, How?-Please refer below:

<pages enableSessionState="true" enableViewState="true" enableViewStateMac="true" validateRequest="false" pageParserFilterType="Microsoft.SharePoint.ApplicationRuntime.SPPageParserFilter, Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" asyncTimeout="7">

Make sure that the remove and add lines exist in the modules section for Session.

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

After implementing the above changes, the error should have to go away.

If you have any queries/questions regarding the above mentioned information then please let me know. I would be more than happy to help you as well as resolves your issues, Thank you…

Product Applies To:
-SharePoint Server 2010
-SharePoint Foundation 2010

References:
This report failed to load because session state is not turned on" when you try to view Microsoft Access Services reports

State service and session state cmdlets (SharePoint Server 2010)

Manage the State Service (SharePoint Server 2010)
http://technet.microsoft.com/en-us/library/ee704548(v=office.14).aspx