Using SQL Server for session states

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default 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'.


    Jonathan Amend Guest

  2. Similar Questions and Discussions

    1. Managing states of the client at server
      Hi all, Can anybody suggest me how do i maintain the state of a client calling my webservice method.e.g. consider a webservice that lets the user...
    2. about server session
      hi all , any one can tell me how session will work in flex and what is the basic syntaxes. i want to set session, get session, update and...
    3. Slow creation of new WS + session states
      I have a two-folded question : 1) Do I need to create a new Webservice each time I want to make a call to a method from a different form? (it's...
    4. Adding states to a POE::Session at runtime
      I've been pouring over the pods for a few hours now. It's possible I missed it (I'm rather tired), but I can't find any information on adding...
    5. Server.Execute and Server.Transfer not detecting session state
      I am setting a session variable, then doing a server.transfer in global.aspx and the page I am going to is saying that session state is not enable...
  3. #2

    Default 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@hotmail.com> 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 Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139