M
mypetrock
I'm trying to unit test some of my ASP .NET code that gets data from a
Page object's Session property. I want to be able to test this outside
of a browser, but I keep getting the error:
System.Web.HttpException : 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.
I've tried starting the ASP.NET State Server and changing the
machine.config and app.config to enable Session State:
<system.web>
<sessionState mode="StateServer"
stateConnectionString="localhost:42424" />
</system.web>
But no dice.
Any thoughts?
mypetrock
Page object's Session property. I want to be able to test this outside
of a browser, but I keep getting the error:
System.Web.HttpException : 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.
I've tried starting the ASP.NET State Server and changing the
machine.config and app.config to enable Session State:
<system.web>
<sessionState mode="StateServer"
stateConnectionString="localhost:42424" />
</system.web>
But no dice.
Any thoughts?
mypetrock