[Mono-dev] serialization "not implemented"
SillySnail
sillysnail at gmail.com
Wed Oct 13 05:51:56 EDT 2010
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.GetObjectData (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.WriteObjectInstance
(System.IO.BinaryWriter writer, System.Object obj, Boolean
isValueObject) [0x00000] in <filename unknown>:0
at
System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteQueuedObjects
(System.IO.BinaryWriter writer) [0x00000] in <filename unknown>:0
at
System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteObjectGraph
(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.Serialize
(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.Serialize
(System.IO.Stream serializationStream, System.Object graph) [0x00000] in
<filename unknown>:0
More information about the Mono-devel-list
mailing list