[Mono-bugs] [Bug 410696] New: BinaryFormatter differences between Mono and MS runtime
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sat Jul 19 15:55:11 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=410696
Summary: BinaryFormatter differences between Mono and MS runtime
Product: Mono: Class Libraries
Version: unspecified
Platform: i386
OS/Version: Windows XP
Status: NEW
Severity: Normal
Priority: P5 - None
Component: System
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: christoffer at curo.dk
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Created an attachment (id=228918)
--> (https://bugzilla.novell.com/attachment.cgi?id=228918)
Simplified test case
Running .NET 2.0 and Mono 1.9.1 on Windows.
When I compile and run the attached cs file I get an exception in Mono but not
in MS .NET.
There must be a difference in the binaryformatter.
The file "3.bin" is created using MS .NET.
Running with mono --debug, I get:
Unhandled Exception: System.Runtime.Serialization.SerializationException: Could
not find type
'System.Collections.Generic.List`1[[Microsoft.MSDN.Samples.Graphic
Objects.ConnectionPoint, GraphicObjects, Version=1.0.0.0, Culture=neutral,
Publi
cKeyToken=null]]'.
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadType
(Syste
m.IO.BinaryReader reader, TypeTag code) [0x00067] in
C:\cygwin\tmp\monobuild\bui
ld\BUILD\mono-1.9.1\mcs\class\corlib\System.Runtime.Serialization.Formatters.Bin
ary\ObjectReader.cs:837
at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadTypeMetadat
a (System.IO.BinaryReader reader, Boolean isRuntimeObject, Boolean hasTypeInfo)
[0x0007b] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-1.9.1\mcs\class\corlib\Sys
tem.Runtime.Serialization.Formatters.Binary\ObjectReader.cs:599
at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadObjectInsta
nce (System.IO.BinaryReader reader, Boolean isRuntimeObject, Boolean
hasTypeInfo
, System.Int64& objectId, System.Object& value,
System.Runtime.Serialization.Ser
ializationInfo& info) [0x0000a] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-1.9.
1\mcs\class\corlib\System.Runtime.Serialization.Formatters.Binary\ObjectReader.c
s:239
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadObject
(Bin
aryElement element, System.IO.BinaryReader reader, System.Int64& objectId,
Syste
m.Object& value, System.Runtime.Serialization.SerializationInfo& info)
[0x0009d]
in
C:\cygwin\tmp\monobuild\build\BUILD\mono-1.9.1\mcs\class\corlib\System.Runti
me.Serialization.Formatters.Binary\ObjectReader.cs:165
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadObject
(Bin
aryElement element, System.IO.BinaryReader reader, System.Int64& objectId,
Syste
m.Object& value, System.Runtime.Serialization.SerializationInfo& info)
[0x00105]
in
C:\cygwin\tmp\monobuild\build\BUILD\mono-1.9.1\mcs\class\corlib\System.Runti
me.Serialization.Formatters.Binary\ObjectReader.cs:193
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadNextObject
(System.IO.BinaryReader reader) [0x00027] in
C:\cygwin\tmp\monobuild\build\BUILD
\mono-1.9.1\mcs\class\corlib\System.Runtime.Serialization.Formatters.Binary\Obje
ctReader.cs:124
at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadObjectGraph
(System.IO.BinaryReader reader, Boolean readHeaders, System.Object& result,
Sys
tem.Runtime.Remoting.Messaging.Header[]& headers) [0x00041] in
C:\cygwin\tmp\mon
obuild\build\BUILD\mono-1.9.1\mcs\class\corlib\System.Runtime.Serialization.Form
atters.Binary\ObjectReader.cs:105
at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.NoCheckDeser
ialize (System.IO.Stream serializationStream,
System.Runtime.Remoting.Messaging.
HeaderHandler handler) [0x00076] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-1.9
1\mcs\class\corlib\System.Runtime.Serialization.Formatters.Binary\BinaryFormatt
er.cs:177
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize
(System.IO.Stream serializationStream) [0x00000] in
C:\cygwin\tmp\monobuild\buil
d\BUILD\mono-1.9.1\mcs\class\corlib\System.Runtime.Serialization.Formatters.Bina
ry\BinaryFormatter.cs:134
at Program.Main () [0x00000]
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list