467,087 Members | 1,253 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,087 developers. It's quick & easy.


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 %>
(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.

Jul 19 '05 #1
  • viewed: 3279

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Martin | last post: by
6 posts views Thread by KevinGravelle@gmail.com | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.