enablesesSionState

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John Baughman

    enablesesSionState

    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 enableSessionSt ae 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 enableSessionSt ate="true" />

    In both the default and linked .aspx pages added to the <%@ page %>
    tag
    enablesessionst ate="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.Http Context.Current .Session or
    system.web.http sessionstate to the code behind but I cannot figure out
    how to use these calls.

    Thanks for any help.

    John
    johnb@qdgi.com


Working...