Ask a Question related to ASP.NET General, Design and Development.
-
Marco Gerlach #1
enablesessionstate Page directive is needed to use the Session object
Hello,
on IIS6 running on Win2003 server std. I get this error
"enablesessionstate Page directive is needed to use the Session object"
my web.config looks like this:
<sessionState
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;user id=sa;password="
cookieless="false"
timeout="20"
/>
<pages validateRequest="false" enableSessionState="true"/>
my machine.config like this:
<pages buffer="true" enableSessionState="true"
enableViewState="true"
enableViewStateMac="true" autoEventWireup="true"
validateRequest="true" />
<sessionState
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
stateNetworkTimeout="10"
sqlConnectionString="data source=127.0.0.1;Integrated
Security=SSPI"
cookieless="false"
timeout="20"
/>
The defaults should be ok ?
If I Set
enableSessionState="true"
at page level, it works, but we have 1200 Pages so my goal is to use
the default settings from web.config. Where else can I look ?
Thanks,
Marco
Marco Gerlach Guest
-
adodb.recordset object and the IIS session object
I was looking through the registry of a Windows 2000 Adv. Server I just built and noticed that the adodb.recordset object had been set to "both"... -
HELP! - "The WSIntranet, Version=1.0.0.0, Culture=neutral, PublicKeyToken=24410d33c1a2222e assembly specified in a Register directive of this page could not be found"
Hi, I am just building my first webpart. It worked fine when I just had output.write("hello"). As soon as I try and do this: SPWeb... -
Adding a Register directive to an aspx page programmatically
Hi ! I am reposting the following question as it went under another topic (don't know exactly why) I have a design-time problem that puzzle... -
Global.asa and EnableSessionState
Hello Everyone, I was wondering if the following line at the top of my global.asa file is legal: <SCRIPT @ENABLESESSIONSTATE = FALSE LANGUAGE... -
Can't use Session in ASP.NET - enableSessionState error
Cristian, If you add an appkey to the web.config, are you able to retrieve it? I'm just wondering if the web.config is getting parsed. Jim... -
Ravikanth[MVP] #2
enablesessionstate Page directive is needed to use the Session object
Hi Marco
Try the following way:
<configuration>
<system.web>
<pages buffer="true"
enableSessionState="true"/>
</system.web>
</configuration>
HTH
Ravikanth
Session object">-----Original Message-----
>
>Hello,
>
>on IIS6 running on Win2003 server std. I get this error
>
>"enablesessionstate Page directive is needed to use thesource=127.0.0.1;user id=sa;password=">
>
>
>my web.config looks like this:
>
> <sessionState
> mode="InProc"
> stateConnectionString="tcpip=127.0.0.1:42424"
> sqlConnectionString="dataenableSessionState="true"/>> cookieless="false"
> timeout="20"
> />
><pages validateRequest="false"autoEventWireup="true">
>
>my machine.config like this:
>
> <pages buffer="true" enableSessionState="true"
>enableViewState="true"
> enableViewStateMac="true"source=127.0.0.1;Integrated>validateRequest="true" />
> <sessionState
> mode="InProc"
> stateConnectionString="tcpip=127.0.0.1:42424"
> stateNetworkTimeout="10"
> sqlConnectionString="datagoal is to use>Security=SSPI"
> cookieless="false"
> timeout="20"
> />
>
>
>The defaults should be ok ?
>
>If I Set
>enableSessionState="true"
>at page level, it works, but we have 1200 Pages so mylook ?>the default settings from web.config. Where else can I>
>
>Thanks,
>
>Marco
>
>
>
>.
>Ravikanth[MVP] Guest
-
Marco Gerlach #3
Re: enablesessionstate Page directive is needed to use the Session object
Hi Ravikanth,
in my settings enableSessionState in machine.config and web.config was set
to "true".
I added "buffer"=true but i didn't help.
Do you know other settings ?
Thanks,
Marco
"Ravikanth[MVP]" <dvravikanth@hotmail.com> schrieb im Newsbeitrag
news:09ab01c34d15$10faf500$a501280a@phx.gbl...> Hi Marco
>
> Try the following way:
>
> <configuration>
> <system.web>
> <pages buffer="true"
> enableSessionState="true"/>
> </system.web>
> </configuration>
>
>
> HTH
> Ravikanth
>> Session object"> >-----Original Message-----
> >
> >Hello,
> >
> >on IIS6 running on Win2003 server std. I get this error
> >
> >"enablesessionstate Page directive is needed to use the> source=127.0.0.1;user id=sa;password="> >
> >
> >
> >my web.config looks like this:
> >
> > <sessionState
> > mode="InProc"
> > stateConnectionString="tcpip=127.0.0.1:42424"
> > sqlConnectionString="data> enableSessionState="true"/>> > cookieless="false"
> > timeout="20"
> > />
> ><pages validateRequest="false"> autoEventWireup="true"> >
> >
> >my machine.config like this:
> >
> > <pages buffer="true" enableSessionState="true"
> >enableViewState="true"
> > enableViewStateMac="true"> source=127.0.0.1;Integrated> >validateRequest="true" />
> > <sessionState
> > mode="InProc"
> > stateConnectionString="tcpip=127.0.0.1:42424"
> > stateNetworkTimeout="10"
> > sqlConnectionString="data> goal is to use> >Security=SSPI"
> > cookieless="false"
> > timeout="20"
> > />
> >
> >
> >The defaults should be ok ?
> >
> >If I Set
> >enableSessionState="true"
> >at page level, it works, but we have 1200 Pages so my> look ?> >the default settings from web.config. Where else can I> >
> >
> >Thanks,
> >
> >Marco
> >
> >
> >
> >.
> >
Marco Gerlach Guest



Reply With Quote

