IIS 6.0 Window2003 ASP.NET Session problem

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.
 
D

Didier Jeanson

Hi,

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top