Hi,
I am trying to put & retrieve an object from the Azure Cache while using as a default serializer the BinaryFormatter and the following error occurs. Any ideas? The default serializer - which is NetDataContractSerializer - works but it's not efficient.
[NullReferenceException: Object reference not set to an instance of an object.]
Mindscape.LightSpeed.Model.ToOneModel.(Entity ) +42
Mindscape.LightSpeed.Entity.Initialize() +200
Mindscape.LightSpeed.Entity.OnDeserializing(StreamingContext ) +354
System.Runtime.Serialization.SerializationEvents.InvokeOnDeserializing(Object obj, StreamingContext context) +300
System.Runtime.Serialization.ObjectManager.RaiseOnDeserializingEvent(Object obj) +43
System.Runtime.Serialization.Formatters.Binary.ObjectReader.ParseObject(ParseRecord pr) +174
System.Runtime.Serialization.Formatters.Binary.ObjectReader.Parse(ParseRecord pr) +41
System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryObjectWithMapTyped record) +634
System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryHeaderEnum binaryHeaderEnum) +57
System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run() +501
System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage) +120
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage) +186
Microsoft.ApplicationServer.Caching.BinaryFormatCacheObjectSerializer.Deserialize(Stream stream) +46
Microsoft.ApplicationServer.Caching.DataCacheObjectSerializationProvider.DeserializeUserObject(Byte[][] serializedData, ValueFlagsVersion flagsType) +332
Microsoft.ApplicationServer.Caching.SocketClientProtocol.Get(String key, DataCacheItemVersion& version, TimeSpan& timeout, ErrStatus& err, String region, IMonitoringListener listener) +179
Microsoft.ApplicationServer.Caching.DataCache.InternalGet(String key, DataCacheItemVersion& version, String region, IMonitoringListener listener) +608
Microsoft.ApplicationServer.Caching.<>c__DisplayClass5b.<Get>b__5a() +47
Microsoft.ApplicationServer.Caching.EmptyListener.Microsoft.ApplicationServer.Caching.IMonitoringListener.Listen(Func`1 innerDelegate) +9
Microsoft.ApplicationServer.Caching.DataCache.Get(String key, String region) +134
Thanks,
John