I'm looking to move my session state store from InProc to SQL Server which I've managed to set up successfully. I'm receiving an error unable to serialize session state as I'm storing objects in there.
All of the objects are from Linq to SQL generated code, for instance customer.
I've changed the serialization mode on the data context to 'unidirectional' but this hasn't resolved the problem.
One of the more simple pages i get the error on is the login page, example of what it does:
Username and email is passed to a method which looks up the DB, if it matches then the customer object created by the linq to sql code is stored in session so it can be accessed later. It falls over at this part.
Any suggesstions on how I can get this working?