The following error appears in my application:
Unable to serialize session state. In the "StateServer" and "SQLServer" modes, ASP.NET will serialize the session state objects and, as a result, non-serializable objects or MarshalByRef objects are not allowed. The same restriction applies if similar serialization is done by the user repository of session states in the "User" mode.
The stack trace does not provide any good information about which object cannot be serialized. Is there a good way to find a problem with a child?
Edit: I found a problem, I tried to serialize the Linq statement (did not execute). But I will try to choose the answer that would best solve this problem.
Yuriy faktorovich
source share