Forum  Commercial Foru...  Commercial Foru...  DataGridView NotSerializable Exception for PropertyDescriptorCollection
Previous Previous
 
Next Next
New Post 4/8/2011 5:28 AM
Unresolved
  nethotline
3 posts
No Ranking


DataGridView NotSerializable Exception for PropertyDescriptorCollection  

 

 Hello,

i'm getting quite a strange serialization exception when trying to do a binary serialization of a datagrid (done to debug the same error occuring during state saving!). I assign a DataSet to the DataGridView (with one single table in it, two columns, two lines) , and while i can serialize before i assign the DataSet i can no longer serialize afterwards.

I'm grateful for an idea how to proceed

 

System.Runtime.Serialization.SerializationException occurred

  Message="Der Typ \"System.ComponentModel.PropertyDescriptorCollection\" in Assembly \"System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\" ist nicht als serialisierbar gekennzeichnet."

  Source="mscorlib"

  StackTrace:

       bei System.Runtime.Serialization.FormatterServices.InternalGetSerializableMembers(RuntimeType type)

       bei System.Runtime.Serialization.FormatterServices.GetSerializableMembers(Type type, StreamingContext context)

       bei System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitMemberInfo()

       bei System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter)

       bei System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Write(WriteObjectInfo objectInfo, NameInfo memberNameInfo, NameInfo typeNameInfo)

       bei System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck)

       bei System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck)

       bei System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph)

       bei COVIS.Rules.SerializationTester.Test[T](T input) in D:\Visual Studio Data\COVIS ezRules\COVIS.Rules\SerializationTester.cs:Zeile 16.

  InnerException: 

 
New Post 4/8/2011 2:38 PM
  palli
14287 posts
1st Level Poster




Re: DataGridView NotSerializable Exception for PropertyDescriptorCollection  

Hi nethotline,

At the moment, DataGridView and PropertyGridView are the two controls that we have not fully made serializable yet, so I expect your error be caused by that fact. The completion of the task of making them serializable is currently scheduled to be fixed in one of the service packs that we will relese to enhance and bugfix the version 6.4 release version. I don't have an exact date for you at this point though.

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 4/11/2011 1:21 AM
  nethotline
3 posts
No Ranking


Re: DataGridView NotSerializable Exception for PropertyDescriptorCollection  

 Hello Palli,

isn't it a bit difficult to have such a core component not serializable to a state server? I only made that test because the state server threw serialization exceptions at that point.

Regards

Ulli

 
New Post 4/11/2011 1:42 PM
  palli
14287 posts
1st Level Poster




Re: DataGridView NotSerializable Exception for PropertyDescriptorCollection  

Hi Ulli,

Yes it is. In some cases you can work around it by serializing the contents, instead of the whole control, but of course this will be implemented as soon as possible. The DataGridView is one of the most complicated controls in the framework, and it was decided that it would be better to release the version without the serialization, instead of delaying the release.

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
Previous Previous
 
Next Next
  Forum  Commercial Foru...  Commercial Foru...  DataGridView NotSerializable Exception for PropertyDescriptorCollection
.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