I am trying to change my session mode to StateServer. In order this is to work, I need to serialize and deserialize the
Complex objects.
But I got the problem like this
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.
In stack trace :
[SerializationException: Der Typ "Spring.Context.Support.XmlApplicationContext" in Assembly "Spring.Core, Version=1.3.2.40943, Culture=neutral, PublicKeyToken=65e474d141e25e07" ist nicht als serialisierbar gekennzeichnet.]
System.Runtime.Serialization.FormatterServices.InternalGetSerializableMembers(RuntimeType type)
So, I think this is coming from the external framework that Iam using in the project. I dont know how to serialize and deserialize it. Can anyone help me what should I do? Thanks
wapt49
Member
4 Points
16 Posts
Serializing external framework
Dec 28, 2012 09:59 PM|LINK
Hi,
I am trying to change my session mode to StateServer. In order this is to work, I need to serialize and deserialize the Complex objects.
But I got the problem like this
In stack trace :
So, I think this is coming from the external framework that Iam using in the project. I dont know how to serialize and deserialize it. Can anyone help me what should I do? Thanks
Angie xu - M...
All-Star
18509 Points
1571 Posts
Microsoft
Re: Serializing external framework
Dec 31, 2012 09:32 AM|LINK
Hi wapt
We discussed similar problem before, I think they will be good reference for you,
http://forums.asp.net/t/1355470.aspx/1/10
This is available for you to learn Steps for Session InProc Mode to Session StateServer
http://dotnetguts.blogspot.com/2009/06/steps-for-session-inproc-mode-to.html
hope it helps you,
Kind regards
Feedback to us
Develop and promote your apps in Windows Store