Using SQL Server for session states

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jonathan Amend

    #1

    Using SQL Server for session states

    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

    #2
    Re: Using SQL Server for session states

    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" <cephas_is@hotm ail.com> wrote in message
    news:3f18578a$1 _4@aeinews....[color=blue]
    > I tried configuring my web application to use SQL Server for session[/color]
    states[color=blue]
    > and I installed the SQL script provided by .NET to set up the databases[/color]
    and[color=blue]
    > 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[/color]
    is[color=blue]
    > 'StateServer' or 'SQLServer'.
    >
    >[/color]


    Comment

    Working...