Enabling Session State in SharePoint 2010?
Posted
by Steve Danner
on Stack Overflow
See other posts from Stack Overflow
or by Steve Danner
Published on 2010-02-10T15:31:50Z
Indexed on
2010/03/08
14:06 UTC
Read the original article
Hit count: 1023
I have a web service built for SharePoint 2007 that I am trying to port to SharePoint 2010. This web service is dependent on session state to function properly, but so far, I have been enable to get session state to work at all in SharePoint 2010. This web service runs as its own web application under t
he /_vti_bin
virtual directory. I have tried all of the following with no luck:
- Ensured the "State Service" service application is running.
- Added the
System.Web.SessionState.SessionStateModule
http module to my application's web.config file. - Added the
System.Web.SessionState.SessionStateModule
http module to my SharePoint root web.config file. - Added
<pages enableSessionState="true" />
to my application's web.config file. - Added
<pages enableSessionState="true" />
to my root web.config file.
Additional Environment info:
- Visual Studio 2008 - SP1
- .NET 3.5 - SP1
- SharePoint 2010 - RC
- Windows Server 2008 R2
- ASMX web service (not WCF)
Had anyone had any luck getting a web application or web service to use session state in SharePoint 2010 yet?
Thanks!
Steve
© Stack Overflow or respective owner