Hi,
Does the Map Suite Web Edition support SQL Server Session State Mode?
Thanks!
Hi,
Does the Map Suite Web Edition support SQL Server Session State Mode?
Thanks!
Clint,
We tested all the web samples today and all of their sessions can be put into Sql Server except two scenarios:
1. When using classes in 3rd-part dlls such as ZedGraph.dll, which is not marked with Serializable, the session cannot be serialized.
2. When hooking up MapSuiteCore’s event on the web page, the page object which is referenced by the event handler is also put into the session. But the page object cannot be serialized and thus causes the session serialization failed.
So I think generally, we can support the Session State serialization but for some cases such as using unserializable classes within 3rd part assembly or hooking up the MapSuiteCore events, we cannot.
Thanks,
Ben
Hi,
We got the Map Suite webedition 3.0 full edition recent version. I hope now u have managed the SQLServer mode now.
When attempting to change my session handling to use sql server, getting the following error on any page that made use of a map control:
Unable to serialize the session state. In 'StateServer' and 'SQLServer' mode, ASP.NET will serialize the session state objects, and as a result non-serializable objects or MarshalByRef objects are not permitted. The same restriction applies if similar serialization is done by the custom session state store in 'Custom' mode.
Please advice me.. is there any flag to change to go ahead with SQLServer.
Thanks.
Raja.C
Hi Raja,
Recently, we found a bug which may cause the serialization failed. But we are not sure whether it’s the same issue of yours. If possible, please send us the code in the Page_Load method or the main code to cause this issue. It will be more helpful for us to figure out this issue.
Thanks,
Howard
Is it still true that we can not use out of proc Session State, if the code hooks up MapSuiteCore’s event on the web page?
I’m getting an “unable to serialize the session state” error on the “Using Custom Data” c# sample (AddMyOwnCustomDataToAFeatureLayer.aspx.cs) when I set Session State to StateServer.
Hi Rob,
Save session in state server should works for our product, but we are ready to release next public version, so we cannot make sure everything can be serialized succeed now.
Could you please let me know your detail version number?
Regards,
Don
MapSuiteCore.dll 6.0.162
WebEdeition.dll 6.0.162
GeoAPI.dll 1.1.0.0
NetTopologySuite.dll 1.7.3.31740
Hi Rob,
Sorry I think some MapSuite 6.0.x.0 version shouldn’t works well for remote save session state but we haven’t a list for that, would you want to have a try of our new 7.0 version?
Regards,
Don
I just tried with the latest daily production build and it does not work.
UPDATE:
I tried the following 3 versions with the same results.
7.0.0.0
7.0.252.0
7.0.0.251
[SerializationException: Type ‘ASP.samples_featurelayers_addmyowncustomdatatoafeaturelayer_aspx’ in Assembly ‘App_Web_1p3mdoe4, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’ is not marked as serializable.]
[HttpException (0x80004005): Unable to serialize the session state. In ‘StateServer’ and ‘SQLServer’ mode, ASP.NET will serialize the session state objects, and as a result non-serializable objects or MarshalByRef objects are not permitted. The same restriction applies if similar serialization is done by the custom session state store in ‘Custom’ mode.]
Hi Rob,
Thanks for let us know this problem, we have reproduced it.
That should because some changes is not serializable, our developer are trying to find the reason but it looks complete this task is not so easy. We will update here to let you know if we fixed it.
Regards,
Don