I've been on this for a while, and cannot figure it out. Can someone please
help with this message?
SessionState can only be used when EnableSessionSt ate is set to true, either
in a configuration file or in the page directive. Please also make sure that
System.Web.Sess ionStateModule or a custom session state module is included in
the <configuration> <system.web><ht tpModulessectio n in the application
configuration.
Here is my current web.config file
<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config. comments usually located in
\Windows\Micros oft.Net\Framewo rk\v2.x\Config
-->
<configuratio n xmlns="http://schemas.microso ft.com/.NetConfigurati on/v2.0">
<appSettings>
<add key="ReportServ er" value="https://myserver/reportserver?/" />
</appSettings>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true">
<assemblies>
<add assembly="Syste m.Design, Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= B03F5F7F11D50A3 A"/>
<add assembly="Syste m.Windows.Forms , Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= B77A5C561934E08 9"/>
</assemblies>
</compilation>
<!--
The <authentication section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authenticati on mode="Windows">
<forms loginUrl="Index .aspx"
cookieless="Use Uri" />
</authentication>
<authorizatio n>
<allow users="*" />
</authorization>
<!--
The <customErrorsse ction enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
-->
<customErrors mode="Off">
</customErrors>
<trust level="Full" originUrl="" />
<httpModules>
<add name="Session" type="System.We b.SessionState. SessionStateMod ule"/>
</httpModules>
<!-- Enable session state for all the pages in the Web application. -->
<pages>
<controls>
<add tagPrefix="ajax Toolkit" namespace="Syst em.Web.UI"
assembly="Syste m.Web.Extension s, Version=1.0.610 25.0, Culture=neutral ,
PublicKeyToken= 31bf3856ad364e3 5"/>
<add namespace="Ajax ControlToolkit" assembly="AjaxC ontrolToolkit"
tagPrefix="ajax Toolkit"/>
</controls>
</pages>
</system.web>
</configuration> 10 4392
InProc Session State is enabled by default in ASP.NET 2.0 You do not need any
entries at all in the Web.config.
--Peter
"Inside every large program, there is a small program trying to get out." http://www.eggheadcafe.com http://petesbloggerama.blogspot.com http://www.blogmetafinder.com
"Wannabe" wrote:
I've been on this for a while, and cannot figure it out. Can someone please
help with this message?
SessionState can only be used when EnableSessionSt ate is set to true, either
in a configuration file or in the page directive. Please also make sure that
System.Web.Sess ionStateModule or a custom session state module is included in
the <configuration> <system.web><ht tpModulessectio n in the application
configuration.
Here is my current web.config file
<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config. comments usually located in
\Windows\Micros oft.Net\Framewo rk\v2.x\Config
-->
<configuratio n xmlns="http://schemas.microso ft.com/.NetConfigurati on/v2.0">
<appSettings>
<add key="ReportServ er" value="https://myserver/reportserver?/" />
</appSettings>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true">
<assemblies>
<add assembly="Syste m.Design, Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= B03F5F7F11D50A3 A"/>
<add assembly="Syste m.Windows.Forms , Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= B77A5C561934E08 9"/>
</assemblies>
</compilation>
<!--
The <authentication section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authenticati on mode="Windows">
<forms loginUrl="Index .aspx"
cookieless="Use Uri" />
</authentication>
<authorizatio n>
<allow users="*" />
</authorization>
<!--
The <customErrorsse ction enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
-->
<customErrors mode="Off">
</customErrors>
<trust level="Full" originUrl="" />
<httpModules>
<add name="Session" type="System.We b.SessionState. SessionStateMod ule"/>
</httpModules>
<!-- Enable session state for all the pages in the Web application. -->
<pages>
<controls>
<add tagPrefix="ajax Toolkit" namespace="Syst em.Web.UI"
assembly="Syste m.Web.Extension s, Version=1.0.610 25.0, Culture=neutral ,
PublicKeyToken= 31bf3856ad364e3 5"/>
<add namespace="Ajax ControlToolkit" assembly="AjaxC ontrolToolkit"
tagPrefix="ajax Toolkit"/>
</controls>
</pages>
</system.web>
</configuration>
Not sure what you mean, but I do not have an InProc entry in my web.config
file.
"Peter Bromberg [C# MVP]" wrote:
InProc Session State is enabled by default in ASP.NET 2.0 You do not need any
entries at all in the Web.config.
--Peter
"Inside every large program, there is a small program trying to get out." http://www.eggheadcafe.com http://petesbloggerama.blogspot.com http://www.blogmetafinder.com
"Wannabe" wrote:
I've been on this for a while, and cannot figure it out. Can someone please
help with this message?
SessionState can only be used when EnableSessionSt ate is set to true, either
in a configuration file or in the page directive. Please also make sure that
System.Web.Sess ionStateModule or a custom session state module is included in
the <configuration> <system.web><ht tpModulessectio n in the application
configuration.
Here is my current web.config file
<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config. comments usually located in
\Windows\Micros oft.Net\Framewo rk\v2.x\Config
-->
<configuratio n xmlns="http://schemas.microso ft.com/.NetConfigurati on/v2.0">
<appSettings>
<add key="ReportServ er" value="https://myserver/reportserver?/" />
</appSettings>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true">
<assemblies>
<add assembly="Syste m.Design, Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= B03F5F7F11D50A3 A"/>
<add assembly="Syste m.Windows.Forms , Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= B77A5C561934E08 9"/>
</assemblies>
</compilation>
<!--
The <authentication section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authenticati on mode="Windows">
<forms loginUrl="Index .aspx"
cookieless="Use Uri" />
</authentication>
<authorizatio n>
<allow users="*" />
</authorization>
<!--
The <customErrorsse ction enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
-->
<customErrors mode="Off">
</customErrors>
<trust level="Full" originUrl="" />
<httpModules>
<add name="Session" type="System.We b.SessionState. SessionStateMod ule"/>
</httpModules>
<!-- Enable session state for all the pages in the Web application. -->
<pages>
<controls>
<add tagPrefix="ajax Toolkit" namespace="Syst em.Web.UI"
assembly="Syste m.Web.Extension s, Version=1.0.610 25.0, Culture=neutral ,
PublicKeyToken= 31bf3856ad364e3 5"/>
<add namespace="Ajax ControlToolkit" assembly="AjaxC ontrolToolkit"
tagPrefix="ajax Toolkit"/>
</controls>
</pages>
</system.web>
</configuration>
re:
!Not sure what you mean, but I do not have an InProc entry in my web.config file.
InProc is *also* the default.
If you want to disable SessionState *or* enable a different sessionState
management mode, other than InProc, you'll need to explicitly set those options.
Check to see if :
<section name="sessionSt ate" type="System.We b.Configuration .SessionStateSe ction, System.Web,
Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a" allowDefinition ="MachineToAppl ication" />
....is in your machine.config file...it should be there.
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== ========
"Wannabe" <Wa*****@discus sions.microsoft .comwrote in message
news:FF******** *************** ***********@mic rosoft.com...
Not sure what you mean, but I do not have an InProc entry in my web.config
file.
"Peter Bromberg [C# MVP]" wrote:
>InProc Session State is enabled by default in ASP.NET 2.0 You do not need any entries at all in the Web.config.
--Peter "Inside every large program, there is a small program trying to get out." http://www.eggheadcafe.com http://petesbloggerama.blogspot.com http://www.blogmetafinder.com "Wannabe" wrote:
I've been on this for a while, and cannot figure it out. Can someone please
help with this message?
SessionState can only be used when EnableSessionSt ate is set to true, either
in a configuration file or in the page directive. Please also make sure that
System.Web.Sess ionStateModule or a custom session state module is included in
the <configuration> <system.web><ht tpModulessectio n in the application
configuration.
Here is my current web.config file
<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config. comments usually located in
\Windows\Micros oft.Net\Framewo rk\v2.x\Config
-->
<configuratio n xmlns="http://schemas.microso ft.com/.NetConfigurati on/v2.0">
<appSettings>
<add key="ReportServ er" value="https://myserver/reportserver?/" />
</appSettings>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true">
<assemblies>
<add assembly="Syste m.Design, Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= B03F5F7F11D50A3 A"/>
<add assembly="Syste m.Windows.Forms , Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= B77A5C561934E08 9"/>
</assemblies>
</compilation>
<!--
The <authentication section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authenticati on mode="Windows">
<forms loginUrl="Index .aspx"
cookieless="Use Uri" />
</authentication>
<authorizatio n>
<allow users="*" />
</authorization>
<!--
The <customErrorsse ction enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
-->
<customErrors mode="Off">
</customErrors>
<trust level="Full" originUrl="" />
<httpModules>
<add name="Session" type="System.We b.SessionState. SessionStateMod ule"/>
</httpModules>
<!-- Enable session state for all the pages in the Web application. -->
<pages>
<controls>
<add tagPrefix="ajax Toolkit" namespace="Syst em.Web.UI"
assembly="Syste m.Web.Extension s, Version=1.0.610 25.0, Culture=neutral ,
PublicKeyToken= 31bf3856ad364e3 5"/>
<add namespace="Ajax ControlToolkit" assembly="AjaxC ontrolToolkit"
tagPrefix="ajax Toolkit"/>
</controls>
</pages>
</system.web>
</configuration>
I checked, and that entry is in my machine.config file. I still get the same
error about session state.
"Juan T. Llibre" wrote:
re:
!Not sure what you mean, but I do not have an InProc entry in my web.config file.
InProc is *also* the default.
If you want to disable SessionState *or* enable a different sessionState
management mode, other than InProc, you'll need to explicitly set those options.
Check to see if :
<section name="sessionSt ate" type="System.We b.Configuration .SessionStateSe ction, System.Web,
Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a" allowDefinition ="MachineToAppl ication" />
....is in your machine.config file...it should be there.
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== ========
"Wannabe" <Wa*****@discus sions.microsoft .comwrote in message
news:FF******** *************** ***********@mic rosoft.com...
Not sure what you mean, but I do not have an InProc entry in my web.config
file.
"Peter Bromberg [C# MVP]" wrote:
InProc Session State is enabled by default in ASP.NET 2.0 You do not need any
entries at all in the Web.config.
--Peter
"Inside every large program, there is a small program trying to get out." http://www.eggheadcafe.com http://petesbloggerama.blogspot.com http://www.blogmetafinder.com
"Wannabe" wrote:
I've been on this for a while, and cannot figure it out. Can someone please
help with this message?
SessionState can only be used when EnableSessionSt ate is set to true, either
in a configuration file or in the page directive. Please also make sure that
System.Web.Sess ionStateModule or a custom session state module is included in
the <configuration> <system.web><ht tpModulessectio n in the application
configuration.
Here is my current web.config file
<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config. comments usually located in
\Windows\Micros oft.Net\Framewo rk\v2.x\Config
-->
<configuratio n xmlns="http://schemas.microso ft.com/.NetConfigurati on/v2.0">
<appSettings>
<add key="ReportServ er" value="https://myserver/reportserver?/" />
</appSettings>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true">
<assemblies>
<add assembly="Syste m.Design, Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= B03F5F7F11D50A3 A"/>
<add assembly="Syste m.Windows.Forms , Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= B77A5C561934E08 9"/>
</assemblies>
</compilation>
<!--
The <authentication section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authenticati on mode="Windows">
<forms loginUrl="Index .aspx"
cookieless="Use Uri" />
</authentication>
<authorizatio n>
<allow users="*" />
</authorization>
<!--
The <customErrorsse ction enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
-->
<customErrors mode="Off">
</customErrors>
<trust level="Full" originUrl="" />
<httpModules>
<add name="Session" type="System.We b.SessionState. SessionStateMod ule"/>
</httpModules>
<!-- Enable session state for all the pages in the Web application. -->
<pages>
<controls>
<add tagPrefix="ajax Toolkit" namespace="Syst em.Web.UI"
assembly="Syste m.Web.Extension s, Version=1.0.610 25.0, Culture=neutral ,
PublicKeyToken= 31bf3856ad364e3 5"/>
<add namespace="Ajax ControlToolkit" assembly="AjaxC ontrolToolkit"
tagPrefix="ajax Toolkit"/>
</controls>
</pages>
</system.web>
</configuration>
In my web.config, that was posted with my original quesiton, I have a
reference to Ajax, which I just added to my site. If I remove that and add
the below statement, my Session State works. How can I work this into my
web.config file? I've tried many combinations, but none worked. Or am I
looking in the wrong direction on how to fix this?
<pages enableSessionSt ate="true" enableViewState ="true"
enableViewState Mac="true" validateRequest ="false" />
"Juan T. Llibre" wrote:
re:
!Not sure what you mean, but I do not have an InProc entry in my web.config file.
InProc is *also* the default.
If you want to disable SessionState *or* enable a different sessionState
management mode, other than InProc, you'll need to explicitly set those options.
Check to see if :
<section name="sessionSt ate" type="System.We b.Configuration .SessionStateSe ction, System.Web,
Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a" allowDefinition ="MachineToAppl ication" />
....is in your machine.config file...it should be there.
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== ========
"Wannabe" <Wa*****@discus sions.microsoft .comwrote in message
news:FF******** *************** ***********@mic rosoft.com...
Not sure what you mean, but I do not have an InProc entry in my web.config
file.
"Peter Bromberg [C# MVP]" wrote:
InProc Session State is enabled by default in ASP.NET 2.0 You do not need any
entries at all in the Web.config.
--Peter
"Inside every large program, there is a small program trying to get out." http://www.eggheadcafe.com http://petesbloggerama.blogspot.com http://www.blogmetafinder.com
"Wannabe" wrote:
I've been on this for a while, and cannot figure it out. Can someone please
help with this message?
SessionState can only be used when EnableSessionSt ate is set to true, either
in a configuration file or in the page directive. Please also make sure that
System.Web.Sess ionStateModule or a custom session state module is included in
the <configuration> <system.web><ht tpModulessectio n in the application
configuration.
Here is my current web.config file
<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config. comments usually located in
\Windows\Micros oft.Net\Framewo rk\v2.x\Config
-->
<configuratio n xmlns="http://schemas.microso ft.com/.NetConfigurati on/v2.0">
<appSettings>
<add key="ReportServ er" value="https://myserver/reportserver?/" />
</appSettings>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true">
<assemblies>
<add assembly="Syste m.Design, Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= B03F5F7F11D50A3 A"/>
<add assembly="Syste m.Windows.Forms , Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= B77A5C561934E08 9"/>
</assemblies>
</compilation>
<!--
The <authentication section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authenticati on mode="Windows">
<forms loginUrl="Index .aspx"
cookieless="Use Uri" />
</authentication>
<authorizatio n>
<allow users="*" />
</authorization>
<!--
The <customErrorsse ction enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
-->
<customErrors mode="Off">
</customErrors>
<trust level="Full" originUrl="" />
<httpModules>
<add name="Session" type="System.We b.SessionState. SessionStateMod ule"/>
</httpModules>
<!-- Enable session state for all the pages in the Web application. -->
<pages>
<controls>
<add tagPrefix="ajax Toolkit" namespace="Syst em.Web.UI"
assembly="Syste m.Web.Extension s, Version=1.0.610 25.0, Culture=neutral ,
PublicKeyToken= 31bf3856ad364e3 5"/>
<add namespace="Ajax ControlToolkit" assembly="AjaxC ontrolToolkit"
tagPrefix="ajax Toolkit"/>
</controls>
</pages>
</system.web>
</configuration>
Try this :
<sessionState mode="InProc" cookieless="fal se" regenerateExpir edSessionId="fa lse" timeout="20" />
If you don't mind Session ID's being reused, you can do with :
<sessionState mode="InProc" cookieless="fal se" timeout="20" />
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== ========
"Wannabe" <Wa*****@discus sions.microsoft .comwrote in message
news:52******** *************** ***********@mic rosoft.com...
In my web.config, that was posted with my original quesiton, I have a
reference to Ajax, which I just added to my site. If I remove that and add
the below statement, my Session State works. How can I work this into my
web.config file? I've tried many combinations, but none worked. Or am I
looking in the wrong direction on how to fix this?
<pages enableSessionSt ate="true" enableViewState ="true"
enableViewState Mac="true" validateRequest ="false" />
"Juan T. Llibre" wrote:
>re: !Not sure what you mean, but I do not have an InProc entry in my web.config file.
InProc is *also* the default.
If you want to disable SessionState *or* enable a different sessionState management mode, other than InProc, you'll need to explicitly set those options.
Check to see if :
<section name="sessionSt ate" type="System.We b.Configuration .SessionStateSe ction, System.Web, Version=2.0.0. 0, Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a" allowDefinition ="MachineToAppl ication" />
....is in your machine.config file...it should be there. Juan T. Llibre, asp.net MVP asp.net faq : http://asp.net.do/faq/ foros de asp.net, en español : http://asp.net.do/foros/ ============== =============== ========= "Wannabe" <Wa*****@discus sions.microsoft .comwrote in message news:FF******* *************** ************@mi crosoft.com...
Not sure what you mean, but I do not have an InProc entry in my web.config
file.
"Peter Bromberg [C# MVP]" wrote:
InProc Session State is enabled by default in ASP.NET 2.0 You do not need any entries at all in the Web.config.
--Peter "Inside every large program, there is a small program trying to get out." http://www.eggheadcafe.com http://petesbloggerama.blogspot.com http://www.blogmetafinder.com "Wannabe" wrote:
I've been on this for a while, and cannot figure it out. Can someone please
help with this message?
SessionState can only be used when EnableSessionSt ate is set to true, either
in a configuration file or in the page directive. Please also make sure that
System.Web.Sess ionStateModule or a custom session state module is included in
the <configuration> <system.web><ht tpModulessectio n in the application
configuration.
Here is my current web.config file
<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config. comments usually located in
\Windows\Micros oft.Net\Framewo rk\v2.x\Config
-->
<configuratio n xmlns="http://schemas.microso ft.com/.NetConfigurati on/v2.0">
<appSettings>
<add key="ReportServ er" value="https://myserver/reportserver?/" />
</appSettings>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true">
<assemblies>
<add assembly="Syste m.Design, Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= B03F5F7F11D50A3 A"/>
<add assembly="Syste m.Windows.Forms , Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= B77A5C561934E08 9"/>
</assemblies>
</compilation>
<!--
The <authentication section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authenticati on mode="Windows">
<forms loginUrl="Index .aspx"
cookieless="Use Uri" />
</authentication>
<authorizatio n>
<allow users="*" />
</authorization>
<!--
The <customErrorsse ction enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
-->
<customErrors mode="Off">
</customErrors>
<trust level="Full" originUrl="" />
<httpModules>
<add name="Session" type="System.We b.SessionState. SessionStateMod ule"/>
</httpModules>
<!-- Enable session state for all the pages in the Web application. -->
<pages>
<controls>
<add tagPrefix="ajax Toolkit" namespace="Syst em.Web.UI"
assembly="Syste m.Web.Extension s, Version=1.0.610 25.0, Culture=neutral ,
PublicKeyToken= 31bf3856ad364e3 5"/>
<add namespace="Ajax ControlToolkit" assembly="AjaxC ontrolToolkit"
tagPrefix="ajax Toolkit"/>
</controls>
</pages>
</system.web>
</configuration>
That did not work. The only thing that works is the original line that I had
before I added Ajax entries. See below...
Original (Session state works, but I get a sys not defined on my Ajax pages):
<pages enableSessionSt ate="true" enableViewState ="true"
enableViewState Mac="true" validateRequest ="false" />
Ajax Version (Ajax works, but now my Session State does not work):
<pages>
<controls>
<add tagPrefix="ajax Toolkit" namespace="Syst em.Web.UI"
assembly="Syste m.Web.Extension s, Version=1.0.610 25.0, Culture=neutral ,
PublicKeyToken= 31bf3856ad364e3 5"/>
<add namespace="Ajax ControlToolkit" assembly="AjaxC ontrolToolkit"
tagPrefix="ajax Toolkit"/>
</controls>
</pages>
How can I incorporate the original session entry with the Ajax entries, and
have both things working at the same time?
Thanks a lot for your help.
"Juan T. Llibre" wrote:
Try this :
<sessionState mode="InProc" cookieless="fal se" regenerateExpir edSessionId="fa lse" timeout="20" />
If you don't mind Session ID's being reused, you can do with :
<sessionState mode="InProc" cookieless="fal se" timeout="20" />
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== ========
"Wannabe" <Wa*****@discus sions.microsoft .comwrote in message
news:52******** *************** ***********@mic rosoft.com...
In my web.config, that was posted with my original quesiton, I have a
reference to Ajax, which I just added to my site. If I remove that and add
the below statement, my Session State works. How can I work this into my
web.config file? I've tried many combinations, but none worked. Or am I
looking in the wrong direction on how to fix this?
<pages enableSessionSt ate="true" enableViewState ="true"
enableViewState Mac="true" validateRequest ="false" />
"Juan T. Llibre" wrote:
re:
!Not sure what you mean, but I do not have an InProc entry in my web.config file.
InProc is *also* the default.
If you want to disable SessionState *or* enable a different sessionState
management mode, other than InProc, you'll need to explicitly set those options.
Check to see if :
<section name="sessionSt ate" type="System.We b.Configuration .SessionStateSe ction, System.Web,
Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a" allowDefinition ="MachineToAppl ication" />
....is in your machine.config file...it should be there.
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== ========
"Wannabe" <Wa*****@discus sions.microsoft .comwrote in message
news:FF******** *************** ***********@mic rosoft.com...
Not sure what you mean, but I do not have an InProc entry in my web.config
file.
"Peter Bromberg [C# MVP]" wrote:
InProc Session State is enabled by default in ASP.NET 2.0 You do not need any
entries at all in the Web.config.
--Peter
"Inside every large program, there is a small program trying to get out." http://www.eggheadcafe.com http://petesbloggerama.blogspot.com http://www.blogmetafinder.com
"Wannabe" wrote:
I've been on this for a while, and cannot figure it out. Can someone please
help with this message?
SessionState can only be used when EnableSessionSt ate is set to true, either
in a configuration file or in the page directive. Please also make sure that
System.Web.Sess ionStateModule or a custom session state module is included in
the <configuration> <system.web><ht tpModulessectio n in the application
configuration.
Here is my current web.config file
<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config. comments usually located in
\Windows\Micros oft.Net\Framewo rk\v2.x\Config
-->
<configuratio n xmlns="http://schemas.microso ft.com/.NetConfigurati on/v2.0">
<appSettings>
<add key="ReportServ er" value="https://myserver/reportserver?/" />
</appSettings>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true">
<assemblies>
<add assembly="Syste m.Design, Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= B03F5F7F11D50A3 A"/>
<add assembly="Syste m.Windows.Forms , Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= B77A5C561934E08 9"/>
</assemblies>
</compilation>
<!--
The <authentication section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authenticati on mode="Windows">
<forms loginUrl="Index .aspx"
cookieless="Use Uri" />
</authentication>
<authorizatio n>
<allow users="*" />
</authorization>
<!--
The <customErrorsse ction enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
-->
<customErrors mode="Off">
</customErrors>
<trust level="Full" originUrl="" />
<httpModules>
<add name="Session" type="System.We b.SessionState. SessionStateMod ule"/>
</httpModules>
<!-- Enable session state for all the pages in the Web application. -->
<pages>
<controls>
<add tagPrefix="ajax Toolkit" namespace="Syst em.Web.UI"
assembly="Syste m.Web.Extension s, Version=1.0.610 25.0, Culture=neutral ,
PublicKeyToken= 31bf3856ad364e3 5"/>
<add namespace="Ajax ControlToolkit" assembly="AjaxC ontrolToolkit"
tagPrefix="ajax Toolkit"/>
</controls>
</pages>
</system.web>
</configuration>
Original (Session state works, but I get a sys not defined on my Ajax
pages):
<pages enableSessionSt ate="true" enableViewState ="true"
enableViewState Mac="true" validateRequest ="false" />
Ajax Version (Ajax works, but now my Session State does not work):
<pages>
<controls>
<add tagPrefix="ajax Toolkit" namespace="Syst em.Web.UI"
assembly="Syste m.Web.Extension s, Version=1.0.610 25.0, Culture=neutral ,
PublicKeyToken= 31bf3856ad364e3 5"/>
<add namespace="Ajax ControlToolkit" assembly="AjaxC ontrolToolkit"
tagPrefix="ajax Toolkit"/>
</controls>
</pages>
How can I incorporate the original session entry with the Ajax entries,
and
have both things working at the same time?
Just a guess, but maybe just add the attributes from your original "pages"
element to the working AJAX config like this:
<pages enableSessionSt ate="true" enableViewState ="true"
enableViewState Mac="true" validateRequest ="false">
<controls>
<add tagPrefix="ajax Toolkit" namespace="Syst em.Web.UI"
assembly="Syste m.Web.Extension s, Version=1.0.610 25.0, Culture=neutral ,
PublicKeyToken= 31bf3856ad364e3 5"/>
<add namespace="Ajax ControlToolkit" assembly="AjaxC ontrolToolkit"
tagPrefix="ajax Toolkit"/>
</controls>
</pages>
That's actually pretty easy Wannabe...
Try this:
<pages enableSessionSt ate="true" enableViewState ="true"
enableViewState Mac="true" validateRequest ="false">
<controls>
<add tagPrefix="ajax Toolkit" namespace="Syst em.Web.UI"
assembly="Syste m.Web.Extension s, Version=1.0.610 25.0, Culture=neutral ,
PublicKeyToken= 31bf3856ad364e3 5"/>
<add namespace="Ajax ControlToolkit" assembly="AjaxC ontrolToolkit"
tagPrefix="ajax Toolkit"/>
</controls>
</pages>
"Wannabe" wrote:
That did not work. The only thing that works is the original line that I had
before I added Ajax entries. See below...
Original (Session state works, but I get a sys not defined on my Ajax pages):
<pages enableSessionSt ate="true" enableViewState ="true"
enableViewState Mac="true" validateRequest ="false" />
Ajax Version (Ajax works, but now my Session State does not work):
<pages>
<controls>
<add tagPrefix="ajax Toolkit" namespace="Syst em.Web.UI"
assembly="Syste m.Web.Extension s, Version=1.0.610 25.0, Culture=neutral ,
PublicKeyToken= 31bf3856ad364e3 5"/>
<add namespace="Ajax ControlToolkit" assembly="AjaxC ontrolToolkit"
tagPrefix="ajax Toolkit"/>
</controls>
</pages>
How can I incorporate the original session entry with the Ajax entries, and
have both things working at the same time?
Thanks a lot for your help.
"Juan T. Llibre" wrote:
Try this :
<sessionState mode="InProc" cookieless="fal se" regenerateExpir edSessionId="fa lse" timeout="20" />
If you don't mind Session ID's being reused, you can do with :
<sessionState mode="InProc" cookieless="fal se" timeout="20" />
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
=============== =============== ========
"Wannabe" <Wa*****@discus sions.microsoft .comwrote in message
news:52******** *************** ***********@mic rosoft.com...
In my web.config, that was posted with my original quesiton, I have a
reference to Ajax, which I just added to my site. If I remove that and add
the below statement, my Session State works. How can I work this into my
web.config file? I've tried many combinations, but none worked. Or am I
looking in the wrong direction on how to fix this?
>
<pages enableSessionSt ate="true" enableViewState ="true"
enableViewState Mac="true" validateRequest ="false" />
>
"Juan T. Llibre" wrote:
>
>re:
>!Not sure what you mean, but I do not have an InProc entry in my web.config file.
>>
>InProc is *also* the default.
>>
>If you want to disable SessionState *or* enable a different sessionState
>management mode, other than InProc, you'll need to explicitly set those options.
>>
>Check to see if :
>>
><section name="sessionSt ate" type="System.We b.Configuration .SessionStateSe ction, System.Web,
>Version=2.0.0. 0, Culture=neutral , PublicKeyToken= b03f5f7f11d50a3 a" allowDefinition ="MachineToAppl ication" />
>>
>....is in your machine.config file...it should be there.
>>
>>
>>
>Juan T. Llibre, asp.net MVP
>asp.net faq : http://asp.net.do/faq/
>foros de asp.net, en español : http://asp.net.do/foros/
>============== =============== =========
>"Wannabe" <Wa*****@discus sions.microsoft .comwrote in message
>news:FF******* *************** ************@mi crosoft.com...
Not sure what you mean, but I do not have an InProc entry in my web.config
file.
>
"Peter Bromberg [C# MVP]" wrote:
>
>InProc Session State is enabled by default in ASP.NET 2.0 You do not need any
>entries at all in the Web.config.
>>
>--Peter
>"Inside every large program, there is a small program trying to get out."
>http://www.eggheadcafe.com
>http://petesbloggerama.blogspot.com
>http://www.blogmetafinder.com
>>
>>
>>
>"Wannabe" wrote:
>>
I've been on this for a while, and cannot figure it out. Can someone please
help with this message?
>
SessionState can only be used when EnableSessionSt ate is set to true, either
in a configuration file or in the page directive. Please also make sure that
System.Web.Sess ionStateModule or a custom session state module is included in
the <configuration> <system.web><ht tpModulessectio n in the application
configuration.
>
Here is my current web.config file
>
<?xml version="1.0"?>
<!--
Note: As an alternative to hand editing this file you can use the
web admin tool to configure settings for your application. Use
the Website->Asp.Net Configuration option in Visual Studio.
A full list of settings and comments can be found in
machine.config. comments usually located in
\Windows\Micros oft.Net\Framewo rk\v2.x\Config
-->
<configuratio n xmlns="http://schemas.microso ft.com/.NetConfigurati on/v2.0">
<appSettings>
<add key="ReportServ er" value="https://myserver/reportserver?/" />
</appSettings>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true">
<assemblies>
<add assembly="Syste m.Design, Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= B03F5F7F11D50A3 A"/>
<add assembly="Syste m.Windows.Forms , Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= B77A5C561934E08 9"/>
</assemblies>
</compilation>
<!--
The <authentication section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authenticati on mode="Windows">
<forms loginUrl="Index .aspx"
cookieless="Use Uri" />
</authentication>
<authorizatio n>
<allow users="*" />
</authorization>
<!--
The <customErrorsse ction enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
-->
<customErrors mode="Off">
</customErrors>
<trust level="Full" originUrl="" />
>
<httpModules>
<add name="Session" type="System.We b.SessionState. SessionStateMod ule"/>
</httpModules>
>
<!-- Enable session state for all the pages in the Web application. -->
<pages>
<controls>
>
<add tagPrefix="ajax Toolkit" namespace="Syst em.Web.UI"
assembly="Syste m.Web.Extension s, Version=1.0.610 25.0, Culture=neutral ,
PublicKeyToken= 31bf3856ad364e3 5"/>
<add namespace="Ajax ControlToolkit" assembly="AjaxC ontrolToolkit"
tagPrefix="ajax Toolkit"/>
</controls>
</pages>
>
</system.web>
</configuration>
>
>>
>>
>>
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Phil Grimpo |
last post by:
I have a very odd situation here. I have an administration page, where
based on a users permissions, a recordset is called from the SQL server
which has a list of paths to "Module Menus". Each of these menus are then
placed into the page by calling Server.Execute(rs_Modules("ModulePath")).
This works fine for up to 15 "menus" After that, the session variables that
were set (not including those called by Global.ASA) are no longer set.
...
|
by: Greg Linwood |
last post by:
I'm having difficulty understanding Session state in ASP.Net. It's almost
embarrassing asking this as I've been using ASP since it was first released
& it really shouldn't be this hard to use - perhaps I'm just not very smart
or perhaps MS is making this too hard for us sql bunnies to understand - I
dunno, but I'd really appreciate someone explaining what I'm doing wrong
here & perhaps suggest a better approach..
I'm familiar with use of...
|
by: Schoo |
last post by:
I have an asp.net app that uses session objects (ag. session("UserID")).
The app works fine in development/debug mode. I released it to the test
server (Windows 2000 server with other .NET applications running on it) and
when I am sitting at that server running the application, it also runs fine.
But, if I sit at any workstation on the LAN it does not work. I narrowed
the problem down to the fact that all of the session objects contain...
|
by: Wayne Brantley |
last post by:
I have found what appears to be an error in streaming with Datasets. It
causes an error of 'Cannot find relation 0' when recreating the dataset from
a stream.
Here is how you reproduce it.
Lets assume you have tables like this:
Customers
CustomerName: Varchar(50)
CustomerNumber: Int (Primary Key)
|
by: Johan Nedin |
last post by:
Hello!
I have a problem with SQLSession state on my ASP.NET pages.
SQLSession state behaves very different from InProcess session state,
which I think is very bad.
I can understand some of the differences, e.g that every object you
store in SQLSession state have to be serializable, but other
differences are very unfortunate.
| |
by: tshad |
last post by:
I have been using the default session state (InProc) and have found that I
have been loosing my information after a period of time (normally 20
minutes).
Is there anyway to find out how much more time I have on a session?
If I do a refresh, does reset the session clock?
Do you have have to go to another page to reset the session timeout or will
a postback also do it? This is important as we have a few pages that a user
|
by: ganeshd |
last post by:
Hi,
I've just upgraded my app from ASP.NET 1.1 to 2.0 and am sporadically
seeing this error:
Session state has created a session id, but cannot save it because the
response was already flushed by the application
I use Response.Flush() in my appplication and also have a session
|
by: BillE |
last post by:
When a user opens a new IE browser window using File-New-Window the
integrity of an application which relies on session state is COMPLETELY
undermined. Anyone who overlooks the fact that File-New-Window creates an
instance of IE in the same process with the same SessionID as the parent
window is in big trouble. This fundamentally restricts the usefullness of
using session state management.
I probably missed it somewhere - can...
|
by: DC |
last post by:
Hi,
we are using ASP.Net 1.1 on eight servers with one session state server
(the windows 2003 service). Too often we are getting the exception
"Unable to make the session state request to the session state server.
Please ensure that the ASP.NET State service is started and that the
client and server ports are the same. If the server is on a remote
machine, please ensure that it accepts remote requests by checking the
value of
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |