|
List Info
Thread: Serialization will not deserialize delegates to non-public methods
|
|
| Serialization will not deserialize
delegates to non-public methods |

|
2007-12-26 16:25:54 |
Hi all,
I am getting the below error while trying to convert my
application's
session state from INPROC to OUTPROC (SQL SERVER). I
understand the
problem, but not sure where it happens. I enabled the option
"Break
into the debugger" for all errors, still it doesn't
stop at the code
where error happens. Is there any way to find out exactly
where the
error has occured?
System.Runtime.Serialization.SerializationException:
Serialization
will not deserialize delegates to non-public methods.
at
System.DelegateSerializationHolder.GetDelegate(DelegateEntry
de)
at
System.DelegateSerializationHolder.GetRealObject(StreamingCo
ntext
context)
at
System.Runtime.Serialization.ObjectManager.ResolveObjectRefe
rence(ObjectHol=
=AD
der
holder)
at System.Runtime.Serialization.ObjectManager.DoFixups()
at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.
Deserialize(Hea=
=AD
derHandler
handler, __BinaryParser serParser, Boolean fCheck,
IMethodCallMessage
methodCallMessage)
at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatt
er.Deserialize(=
=AD
Stream
serializationStream, HeaderHandler handler, Boolean fCheck,
IMethodCallMessage methodCallMessage)
at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatt
er.Deserialize(=
=AD
Stream
serializationStream)
Thanks,
Mani
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "ASP.Net Community" group.
To post to this group, send email to aspnet googlegroups.com
To unsubscribe from this group, send email to
aspnet-unsubscribe googlegroups.com
For more options, visit this group at http://gr
oups.google.com/group/aspnet?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
| Re: Serialization will not deserialize
delegates to non-public methods |

|
2007-12-27 02:17:56 |
|
The exception is not in user code or in a stack where usercode is part of. Check all you variables to see if they are serializable, inproc it is no problem. When you are out proc it is. Start removing session variables and return them to your code one by one.
--
Peter
On Dec 26, 2007 11:25 PM, Mani < psmanii  gmail.com" >psmanii gmail.com> wrote:
Hi all,
I am getting the below error while trying to convert my application's session state from INPROC to OUTPROC (SQL SERVER). I understand the
problem, but not sure where it happens. I enabled the option "Break into the debugger" for all errors, still it doesn't stop at the code where error happens. Is there any way to find out exactly where the
error has occured?
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= =AD der holder) at System.Runtime.Serialization.ObjectManager.DoFixups
() at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(Hea= =AD derHandler handler, __BinaryParser serParser, Boolean fCheck, IMethodCallMessage methodCallMessage) at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize
(= =AD Stream serializationStream, HeaderHandler handler, Boolean fCheck, IMethodCallMessage methodCallMessage) at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(= =AD Stream
serializationStream)
Thanks, Mani
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "ASP.Net Community" group. To post to this group, send email to aspnet googlegroups.com To unsubscribe from this group, send email to aspnet-unsubscribe googlegroups.com For more options, visit this group at http://groups.google.com/group/aspnet?hl=en -~----------~----~----~----~------~----~------~--~---
|
| Re: Serialization will not deserialize
delegates to non-public methods |

|
2007-12-28 07:31:44 |
Thanks for your reply Peter. I checked the code and
everything which I
am placing in session is serializable.
Do you have any other suggestions?
- Mani
On Dec 27, 3:17 am, "Peter Groenewegen"
<pgro... gmail.com> wrote:
> The exception is not in user code or in a stack where
usercode is part of.
> Check all you variables to see if they are
serializable, inproc it is no
> problem. When you are out proc it is. Start removing
session variables and
> return them to your code one by one.
>
> --
> Peter
>
> On Dec 26, 2007 11:25 PM, Mani <psma... gmail.com> wrote:
>
>
>
>
>
> > Hi all,
>
> > I am getting the below error while trying to
convert my application's
> > session state from INPROC to OUTPROC (SQL SERVER).
I understand the
> > problem, but not sure where it happens. I enabled
the option "Break
> > into the debugger" for all errors, still it
doesn't stop at the code
> > where error happens. Is there any way to find out
exactly where the
> > error has occured?
>
> >
System.Runtime.Serialization.SerializationException:
Serialization
> > will not deserialize delegates to non-public
methods.
>
> > at
System.DelegateSerializationHolder.GetDelegate(DelegateEntry
de)
> > at
System.DelegateSerializationHolder.GetRealObject(StreamingCo
ntext
> > context)
> > at
> >
System.Runtime.Serialization.ObjectManager.ResolveObjectRefe
rence
> > (ObjectHol=
> > =AD
> > der
> > holder)
> > at
System.Runtime.Serialization.ObjectManager.DoFixups()
> > at
> >
System.Runtime.Serialization.Formatters.Binary.ObjectReader.
Deserialize
> > (Hea=
> > =AD
> > derHandler
> > handler, __BinaryParser serParser, Boolean fCheck,
IMethodCallMessage
> > methodCallMessage)
> > at
> >
System.Runtime.Serialization.Formatters.Binary.BinaryFormatt
er.Deserialize
> > (=
> > =AD
> > Stream
> > serializationStream, HeaderHandler handler,
Boolean fCheck,
> > IMethodCallMessage methodCallMessage)
> > at
> >
System.Runtime.Serialization.Formatters.Binary.BinaryFormatt
er.Deserialize
> > (=
> > =AD
> > Stream
> > serializationStream)
>
> > Thanks,
> > Mani- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "ASP.Net Community" group.
To post to this group, send email to aspnet googlegroups.com
To unsubscribe from this group, send email to
aspnet-unsubscribe googlegroups.com
For more options, visit this group at http://gr
oups.google.com/group/aspnet?hl=en
-~----------~----~----~----~------~----~------~--~---
|
|
[1-3]
|
|