Patrick’s Bytes

Techie for the past 30 years…

LINQ to SQL and SQL Server Session State – Unable to serialize the session state

Just realize one problem with LINQ to SQL

image

Unable to serialize the session state. In ‘StateServer’ and ‘SQLServer’ mode, ASP.NET will serialize the session state objects, and as a result non-serializable objects or MarshalByRef objects are not permitted. The same restriction applies if similar serialization is done by the custom session state store in ‘Custom’ mode.

When you have your ASP.NET session state stored in SQL Server, when you put any instance of your LINQ to SQL object into the session, you will hit by the about stated error.

I am still working on a fix for this. Will post the solution here once I found it.

1 Comment “LINQ to SQL and SQL Server Session State – Unable to serialize the session state”

  1. Hello Patrick,
    Did u get any solution for the above issue?

    Comment by krishnaraj — January 28, 2010 @ 10:02 pm

RSS feed for comments on this post. TrackBack URL

Leave a Response