Forum  General Visual ...  Visual WebGui v...  'SQLServer' session state mode: Unable to serialize DataGridView or ScheduleBox Controls
Previous Previous
 
Next Next
New Post 6/28/2012 11:42 PM
  guaike
91 posts
jintan.cnblogs.com
No Ranking


'SQLServer' session state mode: Unable to serialize DataGridView or ScheduleBox Controls 

 Hi, 

I am working my test project  using VWG 6.4.0d , in 'SQLServer'  session state mode , when my Form include the  DataGridView or ScheduleBox Controls ,occurs this exception:

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 'Gizmox.WebGUI.Forms.UniqueObservableCollection`1[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]' in Assembly 'Gizmox.WebGUI.Common, Version=4.0.5701.0, Culture=neutral, PublicKeyToken=263fa4ef694acff6' is not marked as serializable.]
   System.Runtime.Serialization.FormatterServices.InternalGetSerializableMembers(RuntimeType type) +9472677
   System.Runtime.Serialization.FormatterServices.GetSerializableMembers(Type type, StreamingContext context) +247
   System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitMemberInfo() +160
   System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize(Type objectType, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, SerializationBinder binder) +384
   System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Write(WriteObjectInfo objectInfo, NameInfo memberNameInfo, NameInfo typeNameInfo) +582
   System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck) +444
   System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck) +133
   System.Web.Util.AltSerialization.WriteValueToStream(Object value, BinaryWriter writer) +1762

 
New Post 6/30/2012 4:46 AM
  palli
14304 posts
1st Level Poster




Re: 'SQLServer' session state mode: Unable to serialize DataGridView or ScheduleBox Controls 

 Hi,

We know that DataGridView is not yet serializable to stateserver and it is being worked on. I did not know that ScheduleBox did also have this problem and brief testing locally didn't show any problem with it's serialization. Can you reproduce that problem in a simple application ?

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
Previous Previous
 
Next Next
  Forum  General Visual ...  Visual WebGui v...  'SQLServer' session state mode: Unable to serialize DataGridView or ScheduleBox Controls
.NET HTML5 Web, Cloud and Mobile application delivery | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2012 Visual WebGui®       Visual WebGui weblog on ASP.NET Gizmox Blog Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS