3

I am getting error on my sharepoint server 2013 "Session state has been disabled for ASP.NET. The Report Viewer control requires that session state be enabled in local mode."

For that error i have tried for , changes in web.config like enableSessionState="true" also tried with power shell command like

"Enable-SPSessionStateService –Defaultprovision" but same error appearing.

what will be the issue ? please suggest me.

Thanks.

2

In SharePoint 2013, try to do the following:

  • Open the SharePoint web application web.config.

  • In the <system.web> section, find the <httpModules> element and edit it like the following:

    <httpModules> <add name = "Session" type="System.Web.SessionState.SessionStateModule" /></httpModules>
    
  • Below <system.web> , at <pages> and set the enableSessionState attribute to true

  • Save and close the web.config file.
  • Now open IIS > Sites > select your SharePoint web application.
  • Open the modules applet under the IIS section.
  • Click Add Managed Module in the right-hand panel.
  • Enter a name for the module> at Type, try to type System.Web.SessionState.SessionStateModule, then select the below namespace

    System.Web.SessionState.SessionStateModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
    

    enter image description here

  • Perform IISReset.

  • Hi, thanks for your reply. solved my disable error. but now i am getting report viewer configuration error i have added tags to the system.web/httpHandlers and to the system.webServer/handlers section as on error i am getting. – anuj Oct 14 '17 at 12:03
  • @user71032 Glad it helps! Now you should close this question by setting the answer as accepted (the true sign beside my answer) then create a new question with the new query/error with more details! – Mohamed El-Qassas MVP Oct 14 '17 at 12:45
  • Hello Qassas, above changes for IIS can be done easily on window server 2012 which i have tested but for window server 2008 R2 do we need to do something extra ? because on server 2008 R2 i am not getting "Add managed modules" predefined types on drop down list to select type ? – anuj Oct 16 '17 at 8:09
  • Do you have SharePoint 2013 with Windows Server 2008 R2?! – Mohamed El-Qassas MVP Oct 16 '17 at 8:57
  • yes, Sharepoint 2013 installed on server 2008 R2 – anuj Oct 16 '17 at 9:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.