Using SQL Server for session states

Discussion in 'ASP .Net' started by Jonathan Amend, Jul 18, 2003.

  1. I tried configuring my web application to use SQL Server for session states
    and I installed the SQL script provided by .NET to set up the databases and
    whatever goes with it but now my web application returns 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'.
    Jonathan Amend, Jul 18, 2003
    #1
    1. Advertising

  2. Jonathan Amend

    bruce barker Guest

    the message is pretty clear. as the object must be serialized to a binary
    field in sqlserver, it must be a serializable object. only inproc sessions
    support non-serialiable objects.

    -- bruce (sqlwork)


    "Jonathan Amend" <> wrote in message
    news:3f18578a$1_4@aeinews....
    > I tried configuring my web application to use SQL Server for session

    states
    > and I installed the SQL script provided by .NET to set up the databases

    and
    > whatever goes with it but now my web application returns 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'.
    >
    >
    bruce barker, Jul 19, 2003
    #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. Mike
    Replies:
    0
    Views:
    351
  2. Michael
    Replies:
    3
    Views:
    1,132
    Jim Cheshire
    Dec 30, 2005
  3. =?Utf-8?B?dGlu?=
    Replies:
    0
    Views:
    300
    =?Utf-8?B?dGlu?=
    Nov 14, 2006
  4. sunkrajesh
    Replies:
    0
    Views:
    348
    sunkrajesh
    May 31, 2009
  5. jez

    Slow creation of new WS + session states

    jez, Mar 21, 2005, in forum: ASP .Net Web Services
    Replies:
    2
    Views:
    148
Loading...

Share This Page