I have an object "A" that inherits from the ILogicalThreadAffinative interface and this object is set in the Callcontext.setdata in my mainmethod.
Now i create another object "B" in the main method which contains an remote object "C" (hosted as bycall activation in a windows service). IN the constructor of the object B, I make a method call using "C" (note "C" is an activate by call remote object). At this jucture I get an exception stating
Unhandled Exception: System.TypeInitializationException: The type initializer for "B" threw an exception. ---> System.Run
time.Serialization.SerializationException: Cannot find the assembly CreateAppDomain(the assembly which has all the objects), Version=1.0.1488.36469, Culture=neutral, PublicKeyToken=null.
I feel that the object C is unable to get the type of the object "A" and is failing. If I place the object A (which is in a separate assembly) in the same folder as that of the object B then the error is not appearing. I assume it is a ...