We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Components are not allowing SessionState usage - other than InProc


it seems like your components are not designed for usage with ASP.NET SessionState Server or SQL-SessionState.

Whenever I try to use it, I get this exception. What should I do? Version is: 11.2440.0.25

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.

[SerializationException: Type 'Syncfusion.Mvc.Shared.MvcAjaxScriptDescriptor' in Assembly 'Syncfusion.Shared.Mvc, Version=11.2440.0.25, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89' is not marked as serializable.]
   System.Runtime.Serialization.FormatterServices.InternalGetSerializableMembers(RuntimeType type) +10494323
   System.Runtime.Serialization.FormatterServices.GetSerializableMembers(Type type, StreamingContext context) +230
   System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitMemberInfo() +121
   System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter, SerializationBinder binder) +178
   System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Write(WriteObjectInfo objectInfo, NameInfo memberNameInfo, NameInfo typeNameInfo) +394
   System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteArrayMember(WriteObjectInfo objectInfo, NameInfo arrayElemTypeNameInfo, Object data) +527
   System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteArray(WriteObjectInfo objectInfo, NameInfo memberNameInfo, WriteObjectInfo memberObjectInfo) +880
   System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Write(WriteObjectInfo objectInfo, NameInfo memberNameInfo, NameInfo typeNameInfo) +655
   System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck) +446
   System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck) +131
   System.Web.Util.AltSerialization.WriteValueToStream(Object value, BinaryWriter writer) +1666

2 Replies

HU humanbeinc October 4, 2013 10:00 AM UTC

You should really do sth. about this, because the components are basically worthless if they can't be used in multi-server/WebFarm environments

VS Velmurugan S Syncfusion Team October 8, 2013 06:49 AM UTC

Hi Humanbeinc,


Thanks for using Syncfusion products.


We suspect that the reported issue “Components are not allowing session state” seems to reproduce in our control. We suggest you to create an incident in Direct-Trac using below link, so that we can validate the issue and provide you further details in the corresponding incident.




In the interests of maintaining confidentiality, we have a policy of not sharing proprietary customer specific information in the public Forum. So, kindly create an incident in Direct-Trac.


Please let us know if you need further assistance,




Live Chat Icon For mobile
Up arrow icon