[Mono-dev] RBTree not marked as Serializable
Peter Shoebridge
peter at blueyondergaming.com
Sun Feb 28 18:07:20 EST 2010
Mono 2.6.1
Calling a method to return a SortedDictionary across an AppDomain causes following exception. And sure enough, RBTree is not marked [Serializable].
Regards
Peter
System.Runtime.Serialization.SerializationException: Type System.Collections.Gen
eric.RBTree is not marked as Serializable.
Server stack trace:
at System.Runtime.Serialization.Formatters.Binary.BinaryCommon.CheckSerializab
le (System.Type type, ISurrogateSelector selector, StreamingContext context) [0x
0002c] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.4\mcs\class\corlib\System.R
untime.Serialization.Formatters.Binary\BinaryCommon.cs:118
at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.GetObjectData (
System.Object obj, System.Runtime.Serialization.Formatters.Binary.TypeMetadata&
metadata, System.Object& data) [0x00054] in C:\cygwin\tmp\monobuild\build\BUILD\
mono-2.4\mcs\class\corlib\System.Runtime.Serialization.Formatters.Binary\ObjectW
riter.cs:386
at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteObject (Sy
stem.IO.BinaryWriter writer, Int64 id, System.Object obj) [0x00000] in C:\cygwin
\tmp\monobuild\build\BUILD\mono-2.4\mcs\class\corlib\System.Runtime.Serializatio
n.Formatters.Binary\ObjectWriter.cs:306
at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteObjectInst
ance (System.IO.BinaryWriter writer, System.Object obj, Boolean isValueObject) [
0x00062] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.4\mcs\class\corlib\System
.Runtime.Serialization.Formatters.Binary\ObjectWriter.cs:293
at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteQueuedObje
cts (System.IO.BinaryWriter writer) [0x00005] in C:\cygwin\tmp\monobuild\build\B
UILD\mono-2.4\mcs\class\corlib\System.Runtime.Serialization.Formatters.Binary\Ob
jectWriter.cs:271
at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.WriteObjectGrap
h (System.IO.BinaryWriter writer, System.Object obj, System.Runtime.Remoting.Mes
saging.Header[] headers) [0x0001f] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2
.4\mcs\class\corlib\System.Runtime.Serialization.Formatters.Binary\ObjectWriter.
cs:256
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize (S
ystem.IO.Stream serializationStream, System.Object graph, System.Runtime.Remotin
g.Messaging.Header[] headers) [0x000a4] in C:\cygwin\tmp\monobuild\build\BUILD\m
ono-2.4\mcs\class\corlib\System.Runtime.Serialization.Formatters.Binary\BinaryFo
rmatter.cs:230
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize (S
ystem.IO.Stream serializationStream, System.Object graph) [0x00000] in C:\cygwin
\tmp\monobuild\build\BUILD\mono-2.4\mcs\class\corlib\System.Runtime.Serializatio
n.Formatters.Binary\BinaryFormatter.cs:209
at System.Runtime.Remoting.RemotingServices.SerializeCallData (System.Object o
bj) [0x00032] in C:\cygwin\tmp\monobuild\build\BUILD\mono-2.4\mcs\class\corlib\S
ystem.Runtime.Remoting\RemotingServices.cs:782
at (wrapper xdomain-dispatch) BlueYonder.DevKit.DependencyAnalyzer:GetDependen
cies (object,byte[]&,byte[]&,string)
Peter Shoebridge
Founder & CEO
[cid:image001.gif at 01CAB890.12BABDB0]
Boulder, Colorado, USA
+1-303-882-6150
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20100228/6c478ae9/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 4014 bytes
Desc: image001.gif
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20100228/6c478ae9/attachment.gif
More information about the Mono-devel-list
mailing list