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