m_RemotedComponent = new RemotedComponent(); RemotingServices.Marshal(m_RemotedComponent, remotingName1); RemotingServices.Marshal(m_RemotedComponent, remotingName2);
Regardless of which order the two Marshal statements appear, the first one works and the second one doesn't. Upon connecting to the second URI, I get the error message saying that the object has to derive from MarshalByRefObject. But, since I can always instantiate the first-listed URI successfully, it obviously does derive from that. If I create a second RemotedComponent, I can marshal it successfully to the second URI, so the problem is clearly related to trying to marshal the same object to two URI's.
MarshalByRefObject
Is this supposed to be possible? If so, how?
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)