I ran into a remoting exception:
\"This remoting proxy has no channel sink which means either the server has no registered server channels that are listening, or
In order to use remoting across appdomains on objects derived from MarshalByRefObject it is necessary to create channels on both ends. Thus, you must create channels in each appdomain. There are efficient channels to do this locally on the same machine e.g. the IPC channel (uses named pipes).
If the communication is "one-way", in the sense that only one of the sides is calling methods on proxies, you register a client channel here, and the server channel on the side which creates the objects.
In case you need to go both ways, e.g. pass a logging object to the "server" in order to receive continuous log feedback, you must register a server channel at both ends, as the client suddenly also serves objects:
class MyLogger : MarshalByRefObject
{
public Log(string text) { ... }
}
MyLogger logger = new MyLogger();
proxyObj.LongRunningCommand(logger);