M
Martin
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 Session object from code-behind to
in-page and it worked. Didn't find an explanation though but it got me up
again.
Today it got worse. Now what sense does this make:
<%@ Page Language="VBScript" EnableSessionState="True" Debug="True" %>
<%
Session.Abandon
%>
Above is the entire aspx-page (saved with an aspx extansion). Can't get much
simpler than this, right? It gives me the horrifying "Session state can only
be used when enableSessionState is set to true, either in a configuration
file or in the Page directive".
Both machine.config and my application's web.config file have
enableSessionState set to "true", which should be the default anyway. I am
using this version:
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
Version:1.1.4322.573
Please help me.
Martin.
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 Session object from code-behind to
in-page and it worked. Didn't find an explanation though but it got me up
again.
Today it got worse. Now what sense does this make:
<%@ Page Language="VBScript" EnableSessionState="True" Debug="True" %>
<%
Session.Abandon
%>
Above is the entire aspx-page (saved with an aspx extansion). Can't get much
simpler than this, right? It gives me the horrifying "Session state can only
be used when enableSessionState is set to true, either in a configuration
file or in the Page directive".
Both machine.config and my application's web.config file have
enableSessionState set to "true", which should be the default anyway. I am
using this version:
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
Version:1.1.4322.573
Please help me.
Martin.