How to configure a channel for RemotingServices.Marshal(o)?
Hello again!
This code works fine:
TcpServerChannel ch = new TcpServerChannel(50000);
ChannelServices.RegisterChannel(ch, false);
ObjRef r = RemotingServices.Marshal(
myChipReader,
settings.RemoteUri,
typeof(IRemoteChipReader));
But I'd like to take the part of creating and registring the channel in the app.config file. So I tried:
<configuration>
...
<system.runtime.remoting>
<application>
<channels>
<channel type="System.Runtime.Remoting.Channels.Tcp.TcpServerChannel" port="50000" />
</channels>
</application>
</system.runtime.remoting>
</configuration>
But it doesn't work :(
I tried to find out in the MSDN documentation (remoting scheme) but didn't find a solution. Can you please help me?
Thanks, Andreas

