ASP. NET sessionstate setting is off

Source: Internet
Author: User

Mapxtreme2004 has the following error:

Cannot set appsetting MapInfo. Engine. session. State to httpsessionstate when ASP. NET sessionstate setting is off in your web. config file.

This inexplicable and wonderful mistake has plagued me for a long time, and many times I suspect that I have written it.CodeYes. In the Web. config file, it is clearly written not off, but he must report such an error, and there is no rule to follow. Sometimes an error may occur when you enter the page, or an error occurs during the operation. Previous data search and Statistics errors also found that the framework is prone to errors. However, removing the framework does not completely solve the problem. Can't this problem be solved? Obviously, I wrote this article.ArticleIt is to solve this problem.

First, finding the root cause of the problem is inspired by another problem.
The init function of httpmodules is executed multiple times.

Mapxtreme has an httpmodule that needs to be executed every time you access the page. This shows why the mapxtreme error is reported when you access a page without GIS. However, this httpmodule may have problems reading website configuration information. In a specific situation, if you do not read the configuration information and mistakenly believe that there is no configuration file, this will of course cause an error. This problem does not seem to happen to everyone. Then the problem we want to solve becomes how to let him read the configuration information. I will not talk nonsense. Put this file under various folders, so that this httpmodule can read what he wants.

Download files

Technorati: Sessionstate off

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.