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

[919 byte] By [AndreasKranister] at [2007-12-24]
# 1

<application>

<channels>

<channel ref="tcp" port="89" />

</channels>

</application>

LucianBargaoanu at 2007-10-8 > top of Msdn Tech,.NET Development,.NET Remoting and Runtime Serialization...
# 2

Thanks for your answer. It doesn't work and I don't understand why it should. Could you please explain?

Andreas

AndreasKranister at 2007-10-8 > top of Msdn Tech,.NET Development,.NET Remoting and Runtime Serialization...

.NET Development

Site Classified