Hello,
I have some code that already exists. This code needs to support ASP.net Session State in MSSQL mode.
The
problem is that there is something in session which can't be serialized
and causes an error: "Un-Serializable object in session". I have found
that this object in session that is casing the problem is an ArrayList
of User Controls.
I set out to make the User Controls
serializable. I set the serializable attribute on the class and
implimented ISerializable with the hetOgjectData Method. None of this
changed anything. I still get the same error.
This problem can
be replicated by making a new projec and, setting session state to use
MSSQL in web.config. Then trying to add a few empty user controls with
Serializable attribute set and using ISerialzable to an Arraylist in
session. The error will still come up, I tried it.
Thanks in advance.