Serialization will not deserialize delegates to non-public methods. [HOWTO FIND DELEGATE]

M

Martijn B

Hi there,

I've been put on a problem where i've got the fix the following
issue:

System.Runtime.Serialization.SerializationException: Serialization
will not deserialize delegates to non-public methods.

at System.DelegateSerializationHolder.GetDelegate(DelegateEntry de)
at System.DelegateSerializationHolder.GetRealObject(StreamingContext
context)
at
System.Runtime.Serialization.ObjectManager.ResolveObjectReference(ObjectHol­
der
holder)
at System.Runtime.Serialization.ObjectManager.DoFixups()
at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(Hea­
derHandler
handler, __BinaryParser serParser, Boolean fCheck, IMethodCallMessage
methodCallMessage)
at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(­
Stream
serializationStream, HeaderHandler handler, Boolean fCheck,
IMethodCallMessage methodCallMessage)
at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(­
Stream
serializationStream)


Problem is that i understand the problem but can't find where it
occurs. Is there a way to find the specific delegate where exception
message is talking about. The object graph consist of many many
objects, so it would be searching a needle in a haystack.

Thanks!

Martijn B
 
J

John Saunders [MVP]

Hi there,

I've been put on a problem where i've got the fix the following
issue:

System.Runtime.Serialization.SerializationException: Serialization
will not deserialize delegates to non-public methods.

at System.DelegateSerializationHolder.GetDelegate(DelegateEntry de)
at System.DelegateSerializationHolder.GetRealObject(StreamingContext
context)
at
System.Runtime.Serialization.ObjectManager.ResolveObjectReference(ObjectHol­
der
holder)
at System.Runtime.Serialization.ObjectManager.DoFixups()
at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(Hea­
derHandler
handler, __BinaryParser serParser, Boolean fCheck, IMethodCallMessage
methodCallMessage)
at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(­
Stream
serializationStream, HeaderHandler handler, Boolean fCheck,
IMethodCallMessage methodCallMessage)
at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(­
Stream
serializationStream)


Problem is that i understand the problem but can't find where it
occurs. Is there a way to find the specific delegate where exception
message is talking about. The object graph consist of many many
objects, so it would be searching a needle in a haystack.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top