[Mono-dev] serialization "not implemented"

Andreas Nahr ClassDevelopment at A-SoftTech.com
Wed Oct 13 06:09:47 EDT 2010


No, it's not specific problem with your usage. It's just not implemented in
Mono.
http://github.com/mono/mono/blob/master/mcs/class/System.Core/System.Collect
ions.Generic/HashSet.cs#L545

BTW: I don't know if the Mono Migration Analyzer is able to detect
Serialization problems, but it seems it doesn't.

Andreas

> -----Ursprüngliche Nachricht-----
> Von: mono-devel-list-bounces at lists.ximian.com [mailto:mono-devel-list-
> bounces at lists.ximian.com] Im Auftrag von SillySnail
> Gesendet: Mittwoch, 13. Oktober 2010 11:52
> An: mono-devel-list at lists.ximian.com
> Betreff: [Mono-dev] serialization "not implemented"
> 
> Hi
> 
> My program needs to serialize a bunch of user-defined instances time to
> time. It runs correctly with .NET framework on Windows but throws
> exception with latest mono-2.8 on Linux. The exception is thrown when
> the program tries to write (serialize) an instance to disk, and says
> "The requested feature is not implemented". Detailed error info is at
> last of the mail.
> 
> I've checked the program with the latest Mono Migration Analyzer and it
> reports all feature in my program are supported in mono. I guess the
> problem is in the way I work with mono rather than mono itself. Does
> anyone knows how to fix the problem? Thanks very much.
> 
> 
> 
> Exception thrown:
> 
> System.NotImplementedException: The requested feature is not
> implemented.
>    at System.Collections.Generic.HashSet`1[System.Int64].GetObjectData
> (System.Runtime.Serialization.SerializationInfo info, StreamingContext
> context) [0x00000] in <filename unknown>:0
>    at
> System.Runtime.Serialization.Formatters.Binary.ObjectWriter.GetObjectDa
> ta (System.Object
> obj, System.Runtime.Serialization.Formatters.Binary.TypeMetadata&
> metadata, System.Object& data) [0x00000] in <filename unknown>:0
>    at
> System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteObject
> (System.IO.BinaryWriter writer, Int64 id, System.Object obj) [0x00000]
> in <filename unknown>:0
>    at
> System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteObject
> Instance
> (System.IO.BinaryWriter writer, System.Object obj, Boolean
> isValueObject) [0x00000] in <filename unknown>:0
>    at
> System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteQueued
> Objects
> (System.IO.BinaryWriter writer) [0x00000] in <filename unknown>:0
>    at
> System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteObject
> Graph
> (System.IO.BinaryWriter writer, System.Object obj,
> System.Runtime.Remoting.Messaging.Header[] headers) [0x00000] in
> <filename unknown>:0
>    at
> System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serializ
> e
> (System.IO.Stream serializationStream, System.Object graph,
> System.Runtime.Remoting.Messaging.Header[] headers) [0x00000] in
> <filename unknown>:0
>    at
> System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serializ
> e
> (System.IO.Stream serializationStream, System.Object graph) [0x00000]
> in
> <filename unknown>:0
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list



More information about the Mono-devel-list mailing list