473,395 Members | 1,613 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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 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
Jul 19 '05 #1
0 3499

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Brad | last post by:
Hello Everyone, I was wondering if the following line at the top of my global.asa file is legal: <SCRIPT @ENABLESESSIONSTATE = FALSE LANGUAGE = VBSCRIPT RUNAT = SERVER> It does not produce...
0
by: Brad | last post by:
Hello Everyone, I was wondering if the following line at the top of my global.asa file is legal: <SCRIPT @ENABLESESSIONSTATE = FALSE LANGUAGE = VBSCRIPT RUNAT = SERVER> It does not produce...
4
by: abcd | last post by:
I have an asp page in which first line is <@ ENABLESESSIONONSTATE = false %> I want to stop the sessions for this page. I have global.asa page whose code is like this <SCRIPT RUNAT=Server...
2
by: Marco Gerlach | last post by:
Hello, on IIS6 running on Win2003 server std. I get this error "enablesessionstate Page directive is needed to use the Session object" my web.config looks like this:
6
by: Martin | last post by:
Hi, I had a page the other day for which the compiler just wouldn't recognize the fact that I had enabled session state in every possible way. I ended up moving the code that dealt with the...
3
by: David Lozzi | last post by:
Error: Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive at line 6 Line 4: <script RUNAT="SERVER"> Line 5: ...
3
by: Sean W. | last post by:
I keep getting this error. "Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive" This occurs when I try to add a...
1
by: user_me | last post by:
I have a page with function 'myFunction()' that contains a call to window.setTimeout("myFunction()", delay, "javascript") to invoke itself every 'delay' minutes. The function 'myFunction()' uses...
6
by: KevinGravelle | last post by:
What is wrong with this picture? I'm trying to set my shopping cart text on my home page using the following function that is executed when the class is constructed: protected string...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.