[Mono-bugs] [Bug 699747] New: Binary Serialization De-serialization of Dictionary

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Jun 14 06:33:18 EDT 2011


https://bugzilla.novell.com/show_bug.cgi?id=699747

https://bugzilla.novell.com/show_bug.cgi?id=699747#c0


           Summary: Binary Serialization De-serialization of Dictionary
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.10.x
          Platform: x86
        OS/Version: Mac OS X 10.6
            Status: NEW
          Severity: Critical
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: e.gent at oodrive.fr
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows NT 5.1; rv:2.0.1) Gecko/20100101
Firefox/4.0.1

Client .Net 3.5 & Server Mono 2.10.2 Binary Serialization De-serialization of a
Dictionary containing System.Environment.SpecialFolder enum values

Produces the following error

{"Could not find type
'System.Collections.Generic.ObjectEqualityComparer`1[[System.Environment+SpecialFolder,
mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089]]'."}

Server stack trace: 
    at System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadType
(System.IO.BinaryReader reader, TypeTag code, Boolean throwOnError) [0x000ad]
in
/private/tmp/monobuild/build/BUILD/mono-2.10.2/mcs/class/corlib/System.Runtime.Serialization.Formatters.Binary/ObjectReader.cs:918
    at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadTypeMetadata
(System.IO.BinaryReader reader, Boolean isRuntimeObject, Boolean hasTypeInfo)
[0x0007b] in
/private/tmp/monobuild/build/BUILD/mono-2.10.2/mcs/class/corlib/System.Runtime.Serialization.Formatters.Binary/ObjectReader.cs:635
    at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadObjectInstance
(System.IO.BinaryReader reader, Boolean isRuntimeObject, Boolean hasTypeInfo,
System.Int64& objectId, System.Object& value,
System.Runtime.Serialization.SerializationInfo& info) [0x0000a] in
/private/tmp/monobuild/build/BUILD/mono-2.10.2/mcs/class/corlib/System.Runtime.Serialization.Formatters.Binary/ObjectReader.cs:269 
    at System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadObject
(BinaryElement element, System.IO.BinaryReader reader, System.Int64& objectId,
System.Object& value, System.Runtime.Serialization.SerializationInfo& info)
[0x0008a] in
/private/tmp/monobuild/build/BUILD/mono-2.10.2/mcs/class/corlib/System.Runtime.Serialization.Formatters.Binary/ObjectReader.cs:191 
    at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadNextObject
(System.IO.BinaryReader reader) [0x00027] in
/private/tmp/monobuild/build/BUILD/mono-2.10.2/mcs/class/corlib/System.Runtime.Serialization.Formatters.Binary/ObjectReader.cs:154 
    at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadObjectGraph
(BinaryElement elem, System.IO.BinaryReader reader, Boolean readHeaders,
System.Object& result, System.Runtime.Remoting.Messaging.Header[]& headers)
[0x00041] in
/private/tmp/monobuild/build/BUILD/mono-2.10.2/mcs/class/corlib/System.Runtime.Serialization.Formatters.Binary/ObjectReader.cs:110 
    at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadObjectGraph
(System.IO.BinaryReader reader, Boolean readHeaders, System.Object& result,
System.Runtime.Remoting.Messaging.Header[]& headers) [0x00007] in
/private/tmp/monobuild/build/BUILD/mono-2.10.2/mcs/class/corlib/System.Runtime.Serialization.Formatters.Binary/ObjectReader.cs:95 
    at
System.Runtime.Serialization.Formatters.Binary.MessageFormatter.ReadMethodCall
(BinaryElement elem, System.IO.BinaryReader reader, Boolean hasHeaders,
System.Runtime.Remoting.Messaging.HeaderHandler headerHandler,
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter formatter)
[0x000d6] in
/private/tmp/monobuild/build/BUILD/mono-2.10.2/mcs/class/corlib/System.Runtime.Serialization.Formatters.Binary/MessageFormatter.cs:315 
    at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.NoCheckDeserialize
(System.IO.Stream serializationStream,
System.Runtime.Remoting.Messaging.HeaderHandler handler) [0x00054] in
/private/tmp/monobuild/build/BUILD/mono-2.10.2/mcs/class/corlib/System.Runtime.Serialization.Formatters.Binary/BinaryFormatter.cs:155 
    at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize
(System.IO.Stream serializationStream,
System.Runtime.Remoting.Messaging.HeaderHandler handler) [0x00000] in
/private/tmp/monobuild/build/BUILD/mono-2.10.2/mcs/class/corlib/System.Runtime.Serialization.Formatters.Binary/BinaryFormatter.cs:128 
    at
System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage
(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders
requestHeaders, System.IO.Stream requestStream, IMessage& responseMsg,
ITransportHeaders& responseHeaders, System.IO.Stream& responseStream) [0x000a1]
in
/private/tmp/monobuild/build/BUILD/mono-2.10.2/mcs/class/System.Runtime.Remoting/System.Runtime.Remoting.Channels/BinaryServerFormatterSink.cs:162

Exception rethrown at [0]:
     à System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
reqMsg, IMessage retMsg)
     à System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
msgData, Int32 type)
   à AdBackup.RemotingSharedLib.IRemotingConfig.GetAndConfigSaveSets(String
computerId, Dictionary`2 paths, Dictionary`2 specificPaths)
   à AdBackup.RemotingClient.RemotingClient.GetAndConfigSaveSets(String
computerId, Dictionary`2 paths, Dictionary`2 specificPaths) dans
D:\\Projects\\AdBackupPro\\src\\app\\AdBackup.RemotingClient\\RemotingClient.cs:ligne
676" 



Reproducible: Always

Steps to Reproduce:
1.
2.
3.

-- 
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