MapXtreme 2005 Session VIII learning experience clarify the issue - two configurations result in different development methods (nine) ...

Preface:

Travel month, finally came back, had wanted to continue to write articles CYQ.Data sequence, and suddenly saw MapXtreme have a response;
He wrote more than an article, to clarify my last article under MapXtreme  2005  learning experience a problem Session issue (eight) in the said.

 

 

Before the debug mode

In MapXtreme installation directory, there is a MapXtremeControl source.

In the last article, not because the debugging source code, but only repeated a lot of debugging on the outside, in order to guess the result of the problem. Session instability that come to conclusions.

 

 

Let us talk about how to debug MapXtremeControl

Analysis:

After opening the project with Vs2005, prompted version conversion, direct conversion can then add references to the project. At this time, even if this reference is added, also can not debug because: under "C \ WINDOWS \ assembly" directory existed MapInfo.WebControls, so the default optimization will call this.

If you want to debug your project references, you need to uninstall DLL in this directory, just right uninstall does not work.

 

 

Uninstall method is as follows: The following is found online, before I found the time, it is by modifying the registry, and then uninstall:

The .NET Framework comes with some tools and GAC-related, including:   
1 ) the Gacutil.exe, a command line tool for browsing in the GAC, add, delete Assembly   
2 ) Ngen.exe, is also a command line tool for creating Native Image in the GAC   
3 ) Mscorcfg.msc, a MMC terminal, you can complete the main function Gacutil.exe graphical. 

 

 

After unloading, which can debug your project you add up.

Issue clear conclusion:

After commissioning in, eventually leads to its own problems again, and on the instability of the Session,

is due to two different configurations of the Session caused

this must be clear to consider at the beginning of the project, and where there are help files such a description, but I did not care.

 

 

About two configurations

05233827_eecO.gif
1 . Session pool with everyone sharing Session, all need to be saved sequence, coding a lot of trouble, this is the default way of example, a bit misleading. WebConfig is equipped with three points, help documentation has said.

2 . Common Session and is a kind, no serialization. Coding simple, but there is no default for help. WebConfig configuration click. Help documentation also said.

Concerning the use of two models, help documentation also mentioned. See more help document is very important, otherwise the rework caused by incorrect configurations, and is almost rewrite all the code.

 

 

Reproduced in: https: //my.oschina.net/secyaher/blog/274397

Guess you like

Origin blog.csdn.net/weixin_34408624/article/details/91967016