Using SQL Server for session states

J

Jonathan Amend

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

bruce barker

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)
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top