Hi All,
a week ago our company needs to use the session state different of InProc.
We have Installed the last VWG version, v.1.1R build 6.2.3.
In order that the sessionState="StateServer" works it's necessary:
- In the SDK installation option you must choose Visual WebGui Scalable Server
- after installation check that Visual WebGui Scalable Server windows services is running
- start ASP.NET State Service windows service
Our test application gave this error:
"System.Web.HttpException: 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.
Stack Trace:
[Exception: You cannot use the serialization functionallity] - please install a proper hotfix (http://support.microsoft.com/kb/927495)
Gizmox.WebGUI.Server.Serialization.SessionSurrogate.Selector..ctor() +103
etc. etc."
Well, the yellow highlighted indicates to install a .net Framework Hotfix.
For .NET Framework 1.1 you must install the 927495 MS hotfix, see http://support.microsoft.com/kb/927495/en-us
At the end of the above article I've found this information:
"This problem may also occur in the .NET Framework 2.0. To obtain the hotfix for the .NET Framework 2.0, click the following article number to view the article in the Microsoft Knowledge Base: 931634 (http://support.microsoft.com/kb/931634/ ) FIX: Error message when you use a serialization surrogate to serialize XML data or to deserialize XML data in the Microsoft .NET Framework 2.0: "The object with ID 3 was referenced in a fixup but does not exist"
Since I'm using the .NET Framework 2.0 to install the hotfix 931638 I've installed the .NET Framework 2.0 SP1 and our project has worked well.
Conclusions: when you want using session state different of InProc on .NET Framework 2.0, assure that .NET Framework 2.0 SP1 is installed.
Nicola