Last post Aug 25, 2017 08:53 AM by Billy Liu
Aug 24, 2017 09:14 AM|Enzyme|LINK
I have an application on remote server to serve for desk top and mobile device. I used 51 Degrees foundation dll for mobile detection, I duplicated each page one for desk top one for mobile, using the direction from the article on the below link;
My desk top side of the site is working well but mobile side is showing error message as below:
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.
This is the config section of my application showing FiftyOne Foundation Mobile Detection
<!-- IIS 7.X - Registers 51Degrees Detector Module. Without this call to 51Degrees.core.js won't work.-->
<remove name="Detector" />
<add name="Detector" type="FiftyOne.Foundation.Mobile.Detection.DetectorModule, FiftyOne.Foundation" />
Any idea on how I can resolve this issue?
Aug 25, 2017 08:53 AM|Billy Liu|LINK
Session state can only be used when enableSessionState is set to true,
Please try to add
<pages enableSessionState="true" />
in your config file.
Or set enableSessionState to true in page directive, for example: