How to avoid SerializationException: Type is not resolved for member XXX when testing a component that uses the LogicalCallContext

I think this is good explaination why you get this error.

Is it possible to use the logical call context within a unit test in VS 2010?

I searched what is good option this. I never find any answer except MarshalByRefObject. So why you should inherit your object with it . It is good explanation

Marshal By Value

Objects are only valid in the application domain where they are created. Any attempt to pass the object as a parameter or return it as a result will fail unless the object derives from MarshalByRefObject or is marked as Serializable. If the object is marked as Serializable, the object will automatically be serialized, transported from the one application domain to the other, and then deserialized to produce an exact copy of the object in the second application domain. This process is typically referred to as marshal by value.

This is source. It is good for Understading Object Serialization Concepts

https://msdn.microsoft.com/en-us/library/ms973893.aspx

Thank you this question I searched and learned good things.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)