I have developed a asp.net web application in SharePoint 2010,which deals libraries.I have to redirect the user,so I implemented session state.When I run it I am getting the following exception.

"{"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 \ section in the application configuration."}"

1.In Web.config file , I made the sessionstate = true.The application works fine for a web application but it wont work for another web application on the same SharePoint Server farm.i compared both the web.config files ,there is no difference at all.

I don't know why this exception is occured.Please answer this.

1 Answer 1


Read Mark Arends blog post on how to enable SessionState in SharePoint 2010 Link


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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