dataview is not serializable? - session state management

  • Thread starter Thread starter uni
  • Start date Start date
U

uni

Hi,

If I use session state mode=InProc, my session variable
for the dataview object is working fine, but if I change
the mode to StateServer, I got the error message saying:
The type System.Data.DataView in Assembly System.Data,
Version=1.0.3300.0, Culture=neutral, ...... is not marked
as serializable.

How could that be and how can I get around with it?

Any help is appreciated!
uni
 
Hi,

Store DataSet in the session instead - it is serializable and it contains
the real data while the DataView just sorts/filters them. Re-constructing a
data view on each request can be time-consuming though, so you could also
consider using the ASP .NET cache instead, bearing web farm load balancing
issues in mind.
 
Back
Top