[Mono-list] Serialization of custom key in Dictionary
Atsushi Eno
atsushieno at veritas-vos-liberabit.com
Tue Mar 15 11:50:22 EDT 2011
As I posted to mono-devel-list, WCF for my hacking environment is broken
in our git so I don' think I can fix or investigate anything, but even
it gets
working, I can't give any answer without the actual reproducible code...
Atsushi Eno
(2011/03/15 23:34), JensAernouts wrote:
> When I try to serialize a dictionary with a custom key variable, I get next
> error:
>
> unknown = System.Runtime.Serialization.SerializationException: Could not
> find type
> 'System.Collections.Generic.ObjectEqualityComparer`1[[OSLCoreExtended.FingerPrint,
> OSLCoreExtended, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
> at System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadType
> (System.IO.BinaryReader reader, TypeTag code, Boolean throwOnError)
> [0x00000] in :0
> at
> System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadTypeMetadata
> (System.IO.BinaryReader reader, Boolean isRuntimeObject, Boolean
> hasTypeInfo) [0x00000] in :0
> 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) [0x00000] in :0
> 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) [0x00000] in :0
> at
> System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadNextObject
> (System.IO.BinaryReader reader) [0x00000] in :0
> 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)
> [0x00000] in :0
> at
> System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.NoCheckDeserialize
> (System.IO.Stream serializationStream,
> System.Runtime.Remoting.Messaging.HeaderHandler handler) [0x00000] in :0
> at
> System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize
> (System.IO.Stream serializationStream) [0x00000] in :0
> at LocalisationEngine.Ice.DataConverter.streamToMeasurementModelDict
> (System.Collections.Generic.Dictionary`2 measurementModelsIn) [0x00000] in
> :0
> at LocalisationEngine.PositionCalculatorI.Init (Int32 nrOfParticlesIn,
> System.Byte[] motionModelIn, System.Collections.Generic.Dictionary`2
> measurementModelsIn, System.Collections.Generic.Dictionary`2
> environmentModelsIn, System.Byte[] resamplingIn, Ice.Current current__)
> [0x00000] in :0
> at PositionCalculator.CalculatorDisp_.Init___ (Calculator obj__,
> IceInternal.Incoming inS__, Ice.Current current__) [0x00000] in :0
> at PositionCalculator.CalculatorDisp_.dispatch__ (IceInternal.Incoming
> inS__, Ice.Current current__) [0x00000] in :0
> at IceInternal.Incoming.invoke (IceInternal.ServantManager
> servantManager) [0x00000] in :0
>
>
> Kind Regards
>
> --
> View this message in context: http://mono.1490590.n4.nabble.com/Serialization-of-custom-key-in-Dictionary-tp3356761p3356761.html
> Sent from the Mono - General mailing list archive at Nabble.com.
> _______________________________________________
> Mono-list maillist - Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>
>
More information about the Mono-list
mailing list