Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / August 2007

Tip: Looking for answers? Try searching our database.

Enable session state

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Aleks Kleyn - 20 Aug 2007 15:40 GMT
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,
Alvin Bruney [MVP] - 21 Aug 2007 01:27 GMT
Is this a web form? It sounds like it is not. Have you tried a web form.

Signature

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

>I test asp.net 2.0 application on virtual PC for studio Orcas 2.0. When  I
> start application I get error in line
[quoted text clipped - 9 lines]
> in http module list.
> Whatever I do, nothing works,
Aleks Kleyn - 21 Aug 2007 04:04 GMT
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.

> Is this a web form? It sounds like it is not. Have you tried a web form.
>
[quoted text clipped - 11 lines]
> > in http module list.
> > Whatever I do, nothing works,
Bahadır ARSLAN - 22 Aug 2007 07:21 GMT
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.

> 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
[quoted text clipped - 18 lines]
>> > in http module list.
>> > Whatever I do, nothing works,
Juan T. Llibre - 22 Aug 2007 12:08 GMT
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/
======================================
> Hi,
> Maybe at your machine.config session closed.
[quoted text clipped - 21 lines]
>>> > in http module list.
>>> > Whatever I do, nothing works,
Aleks Kleyn - 22 Aug 2007 14:34 GMT
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

> Hi,
> Maybe at your machine.config session closed.
[quoted text clipped - 26 lines]
> >> > in http module list.
> >> > Whatever I do, nothing works,

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.