I am attempting to move my asp.net application to Windows Server
2003 with Windows Sharepoint Services (beta) installed. The application
was working fine in 2000 with Sharepoint Team Services installed.
On the Windows 2003 server my default.aspx page opens fine, but
when I link to another page I get the following error:
"Session state can only be used when enableSessionStae is set to true,
either in a configuration file or in the Page Directive."
As I understand it after poking around the web, this problem is
possibly related to the sharepoint installation. For some reason now my
state variables cannot be used until I have enabled session state.
I have tried the following without success.
In my web.config file added..
<pages enableSessionState="true" />
In both the default and linked .aspx pages added to the <%@ page %>
tag
enablesessionstate="True"
(in this case I am adding to the .aspx file located in the compiled
application. Not sure I can do that)
I've found references on the web to adding
System.Web.HttpContext.Current.Session or
system.web.httpsessionstate to the code behind but I cannot figure out
how to use these calls.
Thanks for any help.
John
jo***@qdgi.com