RE: Session state can only be used when enableSessionState is set to true ...

2009-11-03 Thread ken zheng

Thanks, much appreciated.

Cheers

Ken

From: dan...@danielbrown.id.au
To: ozmoss@ozmoss.com
Date: Wed, 4 Nov 2009 10:39:10 +1030
Subject: RE: Session state can only be used when enableSessionState is set  
to  true ...



Howdy, Yes, as long as they are in the same folder, you should be able to 
supply /divisions/information_services/teams/applications/kenny/Pages/* as the 
value From: ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] On 
Behalf Of ken zheng
Sent: Wednesday, 4 November 2009 10:39 AM
To: ozmoss@ozmoss.com
Subject: RE: Session state can only be used when enableSessionState is set to 
true ... Hi Daniel:
   “EnableSessionState=true” works and I need to specify the page in the 
web.config.

PageParserPaths
 PageParserPath 
VirtualPath=/divisions/information_services/teams/applications/kenny/Pages/CharterAccountSearch.aspx
 CompilationMode=Always AllowServerSideScript=true /
  /PageParserPaths

Is there a way I can allow all the pages rather than write every single 
aspx file?

Cheers

Ken

From: dan...@danielbrown.id.au
To: ozmoss@ozmoss.com
Date: Wed, 4 Nov 2009 10:22:30 +1030
Subject: RE: Session state can only be used when enableSessionState is set to 
true ...If you add “EnableSessionState=true” “ to your  %@ Page language=c# 
Codebehind= ... % it should enable it JUST for that page, Alternatively, you 
may want to enable it in the web.config   From: ozmoss-boun...@ozmoss.com 
[mailto:ozmoss-boun...@ozmoss.com] On Behalf Of ken zheng
Sent: Wednesday, 4 November 2009 10:19 AM
To: ozmoss@ozmoss.com
Subject: Session state can only be used when enableSessionState is set to true 
... Hi Guys:

   I believe this could be a old topic, but just like to know how to solve the 
problem when I use Session in my custom page? I can use ViewState as workaround 
and I can use session in my webpart without error. All session state has been 
enabled in web.config

The full error is:

Session state can only be used when enableSessionState is set to true, either 
in a configuration file or in the Page directive. Please also make sure that 
System.Web.SessionStateModule or a custom session state module is included in 
the configuration\system.web\httpModules section in the application 
configuration. 

Thanks

Ken   ___
ozmoss mailing list
ozmoss@ozmoss.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss


Re: Session state can only be used when enableSessionState is set to true ...

2009-11-03 Thread Ajay
If you are storing session state in memory.. then you will have to add
following in web.config

sessionState mode=InProc cookieless =false timeout=60/.. and
comment/remove  the default mode of SqlServer.






On Wed, Nov 4, 2009 at 12:54 PM, Daniel W. Brown
dan...@danielbrown.id.auwrote:

 KB Article also: http://support.microsoft.com/kb/837376







 *From:* ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] *On
 Behalf Of *Daniel W. Brown
 *Sent:* Wednesday, 4 November 2009 10:23 AM
 *To:* ozMOSS
 *Subject:* RE: Session state can only be used when enableSessionState is
 set to true ...



 If you add “EnableSessionState=true” “ to your  %@ Page language=c# 
 Codebehind= ... % it should enable it JUST for that page, Alternatively, 
 you may want to enable it in the web.config







 *From:* ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] *On
 Behalf Of *ken zheng
 *Sent:* Wednesday, 4 November 2009 10:19 AM
 *To:* ozmoss@ozmoss.com
 *Subject:* Session state can only be used when enableSessionState is set
 to true ...



 Hi Guys:

I believe this could be a old topic, but just like to know how to solve
 the problem when I use Session in my custom page? I can use ViewState as
 workaround and I can use session in my webpart without error. All session
 state has been enabled in web.config

 The full error is:

 *Session state can only be used when enableSessionState is set to true,
 either in a configuration file or in the Page directive. Please also make
 sure that System.Web.SessionStateModule or a custom session state module is
 included in the configuration\system.web\httpModules section in the
 application configuration.*

 Thanks

 Ken

 ___
 ozmoss mailing list
 ozmoss@ozmoss.com
 http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss


___
ozmoss mailing list
ozmoss@ozmoss.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss


RE: Session state can only be used when enableSessionState is set to true ...

2009-11-03 Thread Daniel W. Brown
KB Article also: http://support.microsoft.com/kb/837376



From: ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] On Behalf Of 
Daniel W. Brown
Sent: Wednesday, 4 November 2009 10:23 AM
To: ozMOSS
Subject: RE: Session state can only be used when enableSessionState is set to 
true ...


If you add EnableSessionState=true  to your  %@ Page language=c# 
Codebehind= ... % it should enable it JUST for that page, Alternatively, you 
may want to enable it in the web.config




From: ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] On Behalf Of 
ken zheng
Sent: Wednesday, 4 November 2009 10:19 AM
To: ozmoss@ozmoss.com
Subject: Session state can only be used when enableSessionState is set to true 
...

Hi Guys:

   I believe this could be a old topic, but just like to know how to solve the 
problem when I use Session in my custom page? I can use ViewState as workaround 
and I can use session in my webpart without error. All session state has been 
enabled in web.config

The full error is:

Session state can only be used when enableSessionState is set to true, either 
in a configuration file or in the Page directive. Please also make sure that 
System.Web.SessionStateModule or a custom session state module is included in 
the configuration\system.web\httpModules section in the application 
configuration.

Thanks

Ken
___
ozmoss mailing list
ozmoss@ozmoss.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss


RE: Session state can only be used when enableSessionState is set to true ...

2009-11-03 Thread Paul Turner
Actually don't... Session state in SharePoint is not the same as ASP.NET

See this:  http://msdn.microsoft.com/en-us/library/ee413746.aspx

and this:  http://technet.microsoft.com/en-us/library/cc263527.aspx

BTW... it was not a recommended practice in SharePoint 2003 but is perfectly 
fine in 2007.

Regards,

Paul Turner
Senior Solutions Specialist

M: 0412 748 168 P: 08 8238 0912 F: 08 8234 5966
A: 66 Henley Beach Road, Mile End SA 5031
E: paul.tur...@dws.com.aumailto:paul.tur...@dws.com.au  W: 
www.dws.com.auhttps://webmail.dws.com.au/owa/UrlBlockedError.aspx

ADVANCED BUSINESS SOLUTIONS LTD
This email and any files transmitted with it are confidential and are only for 
the use of the person to whom they are addressed. If you are not the intended 
recipient you have received this email in error and are requested to delete it 
immediately. Any opinion expressed in this e-mail may not necessarily be that 
of DWS Pty Ltd.
Please consider the environment before printing this email.

From: ozmoss-boun...@ozmoss.com [ozmoss-boun...@ozmoss.com] On Behalf Of Ajay 
[akhanna...@gmail.com]
Sent: Wednesday, 4 November 2009 10:31 AM
To: ozMOSS
Subject: Re: Session state can only be used when enableSessionState is set to 
true ...

If you are storing session state in memory.. then you will have to add 
following in web.config

sessionState mode=InProc cookieless =false timeout=60/.. and 
comment/remove  the default mode of SqlServer.






On Wed, Nov 4, 2009 at 12:54 PM, Daniel W. Brown 
dan...@danielbrown.id.aumailto:dan...@danielbrown.id.au wrote:
KB Article also: http://support.microsoft.com/kb/837376



From: ozmoss-boun...@ozmoss.commailto:ozmoss-boun...@ozmoss.com 
[mailto:ozmoss-boun...@ozmoss.commailto:ozmoss-boun...@ozmoss.com] On Behalf 
Of Daniel W. Brown
Sent: Wednesday, 4 November 2009 10:23 AM
To: ozMOSS
Subject: RE: Session state can only be used when enableSessionState is set to 
true ...


If you add “EnableSessionState=true” “ to your  %@ Page language=c# 
Codebehind= ... % it should enable it JUST for that page, Alternatively, you 
may want to enable it in the web.config




From: ozmoss-boun...@ozmoss.commailto:ozmoss-boun...@ozmoss.com 
[mailto:ozmoss-boun...@ozmoss.commailto:ozmoss-boun...@ozmoss.com] On Behalf 
Of ken zheng
Sent: Wednesday, 4 November 2009 10:19 AM
To: ozmoss@ozmoss.commailto:ozmoss@ozmoss.com
Subject: Session state can only be used when enableSessionState is set to true 
...

Hi Guys:

   I believe this could be a old topic, but just like to know how to solve the 
problem when I use Session in my custom page? I can use ViewState as workaround 
and I can use session in my webpart without error. All session state has been 
enabled in web.config

The full error is:

Session state can only be used when enableSessionState is set to true, either 
in a configuration file or in the Page directive. Please also make sure that 
System.Web.SessionStateModule or a custom session state module is included in 
the configuration\system.web\httpModules section in the application 
configuration.

Thanks

Ken

___
ozmoss mailing list
ozmoss@ozmoss.commailto:ozmoss@ozmoss.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss


___
ozmoss mailing list
ozmoss@ozmoss.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss


RE: Session state can only be used when enableSessionState is set to true ...

2009-11-03 Thread ken zheng

Hi Daniel:
   “EnableSessionState=true” works and I need to specify the page in the 
web.config.

PageParserPaths
 PageParserPath 
VirtualPath=/divisions/information_services/teams/applications/kenny/Pages/CharterAccountSearch.aspx
 CompilationMode=Always AllowServerSideScript=true /
  /PageParserPaths

Is there a way I can allow all the pages rather than write every single 
aspx file?

Cheers

Ken


From: dan...@danielbrown.id.au
To: ozmoss@ozmoss.com
Date: Wed, 4 Nov 2009 10:22:30 +1030
Subject: RE: Session state can only be used when enableSessionState is set  
to  true ...



If you add “EnableSessionState=true” “ to your  %@ Page language=c# 
Codebehind= ... % it should enable it JUST for that page, Alternatively, you 
may want to enable it in the web.config   From: ozmoss-boun...@ozmoss.com 
[mailto:ozmoss-boun...@ozmoss.com] On Behalf Of ken zheng
Sent: Wednesday, 4 November 2009 10:19 AM
To: ozmoss@ozmoss.com
Subject: Session state can only be used when enableSessionState is set to true 
... Hi Guys:

   I believe this could be a old topic, but just like to know how to solve the 
problem when I use Session in my custom page? I can use ViewState as workaround 
and I can use session in my webpart without error. All session state has been 
enabled in web.config

The full error is:

Session state can only be used when enableSessionState is set to true, either 
in a configuration file or in the Page directive. Please also make sure that 
System.Web.SessionStateModule or a custom session state module is included in 
the configuration\system.web\httpModules section in the application 
configuration. 

Thanks

Ken   ___
ozmoss mailing list
ozmoss@ozmoss.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss


RE: Session state can only be used when enableSessionState is set to true ...

2009-11-03 Thread Daniel W. Brown
Howdy,

Yes, as long as they are in the same folder, you should be able to supply 
/divisions/information_services/teams/applications/kenny/Pages/* as the value

From: ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] On Behalf Of 
ken zheng
Sent: Wednesday, 4 November 2009 10:39 AM
To: ozmoss@ozmoss.com
Subject: RE: Session state can only be used when enableSessionState is set to 
true ...

Hi Daniel:
   EnableSessionState=true works and I need to specify the page in the 
web.config.

PageParserPaths
 PageParserPath 
VirtualPath=/divisions/information_services/teams/applications/kenny/Pages/CharterAccountSearch.aspx
 CompilationMode=Always AllowServerSideScript=true /
  /PageParserPaths

Is there a way I can allow all the pages rather than write every single 
aspx file?

Cheers

Ken


From: dan...@danielbrown.id.au
To: ozmoss@ozmoss.com
Date: Wed, 4 Nov 2009 10:22:30 +1030
Subject: RE: Session state can only be used when enableSessionState is set to 
true ...

If you add EnableSessionState=true  to your  %@ Page language=c# 
Codebehind= ... % it should enable it JUST for that page, Alternatively, you 
may want to enable it in the web.config




From: ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] On Behalf Of 
ken zheng
Sent: Wednesday, 4 November 2009 10:19 AM
To: ozmoss@ozmoss.com
Subject: Session state can only be used when enableSessionState is set to true 
...

Hi Guys:

   I believe this could be a old topic, but just like to know how to solve the 
problem when I use Session in my custom page? I can use ViewState as workaround 
and I can use session in my webpart without error. All session state has been 
enabled in web.config

The full error is:

Session state can only be used when enableSessionState is set to true, either 
in a configuration file or in the Page directive. Please also make sure that 
System.Web.SessionStateModule or a custom session state module is included in 
the configuration\system.web\httpModules section in the application 
configuration.

Thanks

Ken
___
ozmoss mailing list
ozmoss@ozmoss.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss


Session state can only be used when enableSessionState is set to true ...

2009-11-03 Thread ken zheng

Hi Guys:

   I believe this could be a old topic, but just like to know how to solve the 
problem when I use Session in my custom page? I can use ViewState as workaround 
and I can use session in my webpart without error. All session state has been 
enabled in web.config

The full error is:

Session state can only be used when enableSessionState is set to true, either 
in a configuration file or in the Page directive. Please also make sure that 
System.Web.SessionStateModule or a custom session state module is included in 
the configuration\system.web\httpModules section in the 
application configuration. 

Thanks

Ken
  ___
ozmoss mailing list
ozmoss@ozmoss.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss


RE: Session state can only be used when enableSessionState is set to true ...

2009-11-03 Thread Daniel W. Brown
If you add EnableSessionState=true  to your  %@ Page language=c# 
Codebehind= ... % it should enable it JUST for that page, Alternatively, you 
may want to enable it in the web.config




From: ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] On Behalf Of 
ken zheng
Sent: Wednesday, 4 November 2009 10:19 AM
To: ozmoss@ozmoss.com
Subject: Session state can only be used when enableSessionState is set to true 
...

Hi Guys:

   I believe this could be a old topic, but just like to know how to solve the 
problem when I use Session in my custom page? I can use ViewState as workaround 
and I can use session in my webpart without error. All session state has been 
enabled in web.config

The full error is:

Session state can only be used when enableSessionState is set to true, either 
in a configuration file or in the Page directive. Please also make sure that 
System.Web.SessionStateModule or a custom session state module is included in 
the configuration\system.web\httpModules section in the application 
configuration.

Thanks

Ken
___
ozmoss mailing list
ozmoss@ozmoss.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss