Unable to serialize the session state. Please note that non-serializable objects or MarshalByRef obj

Discussion in 'ASP .Net' started by Mike Larkin, May 19, 2005.

  1. Mike Larkin

    Mike Larkin Guest

    I am attempting to store my session state via SQL Server...however, one
    of my dataset is generating the following error:

    Unable to serialize the session state. Please note that
    non-serializable objects or MarshalByRef objects are not permitted when
    session state mode is 'StateServer' or 'SQLServer'.

    I have other datasets that serialize fine. What's the deal? Is there
    a size limit? (The other datasets are smaller)

    --Thanks!
     
    Mike Larkin, May 19, 2005
    #1
    1. Advertising

  2. most probably, one of the contents that you have in your dataset isn't
    serializable. read the error message carefully for a clue

    --
    Regards,
    Alvin Bruney - ASP.NET MVP

    [Shameless Author Plug]
    The Microsoft Office Web Components Black Book with .NET
    Now available @ www.lulu.com/owc, Amazon.com etc
    "Mike Larkin" <> wrote in message
    news:...
    >I am attempting to store my session state via SQL Server...however, one
    > of my dataset is generating the following error:
    >
    > Unable to serialize the session state. Please note that
    > non-serializable objects or MarshalByRef objects are not permitted when
    > session state mode is 'StateServer' or 'SQLServer'.
    >
    > I have other datasets that serialize fine. What's the deal? Is there
    > a size limit? (The other datasets are smaller)
    >
    > --Thanks!
    >
     
    Alvin Bruney [MVP - ASP.NET], May 23, 2005
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Bill L
    Replies:
    1
    Views:
    3,220
    Bill L
    Feb 17, 2004
  2. js
    Replies:
    1
    Views:
    4,147
    Bruce Barker
    Jan 25, 2006
  3. tshad
    Replies:
    6
    Views:
    539
    tshad
    Apr 20, 2006
  4. Abi
    Replies:
    4
    Views:
    1,329
  5. Replies:
    8
    Views:
    3,494
Loading...

Share This Page