473,396 Members | 1,997 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,396 software developers and data experts.

Enable session state

I test asp.net 2.0 application on virtual PC for studio Orcas 2.0. When I
start application I get error in line
session("aa")="bb"
Error tells that I need to enable session state. I found in @page directive
option
enableSessionState which has values false, readonly and true. I put this
value true, however it did not help. it is possible to put this value into
web.config, but i did not find where. Also i need to add appropriate module
in http module list.
Whatever I do, nothing works,
Aug 20 '07 #1
5 7255
Is this a web form? It sounds like it is not. Have you tried a web form.

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET - MS Press
Professional VSTO 2005 - Wrox/Wiley
OWC Black Book www.lulu.com/owc

"Aleks Kleyn" <Al********@discussions.microsoft.comwrote in message
news:6F**********************************@microsof t.com...
>I test asp.net 2.0 application on virtual PC for studio Orcas 2.0. When I
start application I get error in line
session("aa")="bb"
Error tells that I need to enable session state. I found in @page
directive
option
enableSessionState which has values false, readonly and true. I put this
value true, however it did not help. it is possible to put this value
into
web.config, but i did not find where. Also i need to add appropriate
module
in http module list.
Whatever I do, nothing works,

Aug 21 '07 #2
This is regular web form asp.net 2.0. in onLoad event i wrote
session("aa")="bb". It works in regular case. But I test it in win 2003 and
studio Orcas. I need to understand what I need to enable session.

"Alvin Bruney [MVP]" wrote:
Is this a web form? It sounds like it is not. Have you tried a web form.

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET - MS Press
Professional VSTO 2005 - Wrox/Wiley
OWC Black Book www.lulu.com/owc

"Aleks Kleyn" <Al********@discussions.microsoft.comwrote in message
news:6F**********************************@microsof t.com...
I test asp.net 2.0 application on virtual PC for studio Orcas 2.0. When I
start application I get error in line
session("aa")="bb"
Error tells that I need to enable session state. I found in @page
directive
option
enableSessionState which has values false, readonly and true. I put this
value true, however it did not help. it is possible to put this value
into
web.config, but i did not find where. Also i need to add appropriate
module
in http module list.
Whatever I do, nothing works,


Aug 21 '07 #3
Hi,
Maybe at your machine.config session closed.
Try to check maching.config, web.config (in the same directory) or
web.config (int wwwroot directory)

I am not sure but in my opinion because of win2k3's security options it is
not allowed by default.

"Aleks Kleyn" <Al********@discussions.microsoft.com>, iletisinde şunu yazdı,
news:0D**********************************@microsof t.com...
This is regular web form asp.net 2.0. in onLoad event i wrote
session("aa")="bb". It works in regular case. But I test it in win 2003
and
studio Orcas. I need to understand what I need to enable session.

"Alvin Bruney [MVP]" wrote:
>Is this a web form? It sounds like it is not. Have you tried a web form.

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET - MS Press
Professional VSTO 2005 - Wrox/Wiley
OWC Black Book www.lulu.com/owc

"Aleks Kleyn" <Al********@discussions.microsoft.comwrote in message
news:6F**********************************@microso ft.com...
>I test asp.net 2.0 application on virtual PC for studio Orcas 2.0. When
I
start application I get error in line
session("aa")="bb"
Error tells that I need to enable session state. I found in @page
directive
option
enableSessionState which has values false, readonly and true. I put
this
value true, however it did not help. it is possible to put this value
into
web.config, but i did not find where. Also i need to add appropriate
module
in http module list.
Whatever I do, nothing works,


Aug 22 '07 #4
re:
!in my opinion because of win2k3's security options it is not allowed by default

The default setting for session state is "InProc",
which means that sessions are allowed no matter which OS is used.

If you don't want sessions, you have to set sessionstate to "Off",
either in the <sessionstate mode...or the <pages sessionstate...elements in web.config
..
That disables the use of sessions.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Bahadir ARSLAN" <ba************@netron.com.trwrote in message
news:9E**********************************@microsof t.com...
Hi,
Maybe at your machine.config session closed.
Try to check maching.config, web.config (in the same directory) or web.config (int wwwroot directory)

I am not sure but in my opinion because of win2k3's security options it is not allowed by default.

"Aleks Kleyn" <Al********@discussions.microsoft.com>, iletisinde sunu yazdi,
news:0D**********************************@microsof t.com...
>This is regular web form asp.net 2.0. in onLoad event i wrote
session("aa")="bb". It works in regular case. But I test it in win 2003 and
studio Orcas. I need to understand what I need to enable session.

"Alvin Bruney [MVP]" wrote:
>>Is this a web form? It sounds like it is not. Have you tried a web form.

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET - MS Press
Professional VSTO 2005 - Wrox/Wiley
OWC Black Book www.lulu.com/owc

"Aleks Kleyn" <Al********@discussions.microsoft.comwrote in message
news:6F**********************************@micros oft.com...
I test asp.net 2.0 application on virtual PC for studio Orcas 2.0. When I
start application I get error in line
session("aa")="bb"
Error tells that I need to enable session state. I found in @page
directive
option
enableSessionState which has values false, readonly and true. I put this
value true, however it did not help. it is possible to put this value
into
web.config, but i did not find where. Also i need to add appropriate
module
in http module list.
Whatever I do, nothing works,

Aug 22 '07 #5
you catched the point. I do not know about machine.config and I decided to
look to webroot. I did not find machine.config, but in the main folder there
is web.config as well. There reference to http module for sessionState was
commented (I need to find answer why; this is team foundation server). When I
uncommented this reference everything works fine

"Bahadır ARSLAN" wrote:
Hi,
Maybe at your machine.config session closed.
Try to check maching.config, web.config (in the same directory) or
web.config (int wwwroot directory)

I am not sure but in my opinion because of win2k3's security options it is
not allowed by default.

"Aleks Kleyn" <Al********@discussions.microsoft.com>, iletisinde şunu yazdı,
news:0D**********************************@microsof t.com...
This is regular web form asp.net 2.0. in onLoad event i wrote
session("aa")="bb". It works in regular case. But I test it in win 2003
and
studio Orcas. I need to understand what I need to enable session.

"Alvin Bruney [MVP]" wrote:
Is this a web form? It sounds like it is not. Have you tried a web form.

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET - MS Press
Professional VSTO 2005 - Wrox/Wiley
OWC Black Book www.lulu.com/owc

"Aleks Kleyn" <Al********@discussions.microsoft.comwrote in message
news:6F**********************************@microsof t.com...
I test asp.net 2.0 application on virtual PC for studio Orcas 2.0. When
I
start application I get error in line
session("aa")="bb"
Error tells that I need to enable session state. I found in @page
directive
option
enableSessionState which has values false, readonly and true. I put
this
value true, however it did not help. it is possible to put this value
into
web.config, but i did not find where. Also i need to add appropriate
module
in http module list.
Whatever I do, nothing works,
Aug 22 '07 #6

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

Similar topics

1
by: Johan Nedin | last post by:
Hello! I have a problem with SQLSession state on my ASP.NET pages. SQLSession state behaves very different from InProcess session state, which I think is very bad. I can understand some of...
10
by: tshad | last post by:
I have been using the default session state (InProc) and have found that I have been loosing my information after a period of time (normally 20 minutes). Is there anyway to find out how much...
0
by: gabedog | last post by:
What would be a good (and safe) way to enable/disable a web site in a web farm that needs to come down for maintenance? Periodically, we have db folks that run db scripts. I'd like to put a back...
0
by: BubbaThree | last post by:
I started having these problems Monday, I believe but I am not sure that our corporate office deployed some security patches??? First of all, when a go to my Web Application (written in ASP.NET...
2
by: Ken Varn | last post by:
I have tried to enable session state in my tag, but it appears to not be working. When my web service is called, the session state is not preserved. The Web Service is being called from a...
11
by: Glenn | last post by:
Hi I've been experimenting with managing state using the Session object. I've created a simple WS with a couple of methods, one which sets a string value, another that retrieves it. Each...
0
by: kpg* | last post by:
Hi all, I have a web service with two similar methods, one for production and one for testing. On the test method I enable session state so I can dump out debug files named with the session...
2
by: Robin9876 | last post by:
In an ASP.Net using framework v2 what is required to enable session state to be setup for the web code and the database?
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
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.