IIS 6.0 Window2003 ASP.NET Session problem

  • Thread starter Thread starter Didier Jeanson
  • Start date Start date
D

Didier Jeanson

Hi,

The session does not work in ASP.NET under Windows 2003 and IIS6.

The page is very simple.

- When I try to access the Session object in .NET I receive the following
error:
Session state can only be used when enableSessionState is set to true,
either in a configuration file or in the Page directive

- When I try to access the object HttpContext.Current.Session in .NET I
receive the following error:
Object reference not set to an instance of an object.
This object is null when I debug the page.

- I have verified the machine.config, web.config (wwwroot) and web.config
(site) files all are:
<sesssionState mode="InProc" ...>
<pages enableSessionState="true" ...>

- My page contains the directive enableSessionState="True" ...>

- The web site allow the session (20 min) in the IIS manager.

- The sessions work with ASP 3.0.

- I also have installed SharePoint and BizTalk 2004 installed but they are
not active.


Any help would be appreciated.
 
Hi,

The problem has been resolved by reinstalling asp.net and IIS a couple of
times.
 
Back
Top