Complete Error Message
Before you start your troubleshooting, make sure that the State Service service application is running. How you will check this?
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.
- Open your Central Administration
- Manage service applications
- Check the service application by the name ‘state service service application’
Resolution
Make the enableSessionState is set to true by following below step
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>
<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.
Product Applies To
SharePoint Server 2010
SharePoint Foundation 2010
References
What is session state? What exactly its functionality? How it works?
State service and session state cmdlets (SharePoint Server 2010)
http://technet.microsoft.com/en-in/library/ee890113(v=office.14).aspx
Manage the State Service (SharePoint Server 2010)
No comments:
Post a Comment