On Mon, Aug 04, 2003 at 04:00:01PM +0200, Wilhelm Patrick wrote:
> switch (appMode)
> {
> default:
> case AppMode.Server:
> // Register a new channel with the runtime remoting services
> ChannelServices.RegisterChannel(new TcpChannel(13100));
>
> // Register a type as a well-known type
> RemotingConfiguration.RegisterWellKnownServiceType(
> typeof(RemoteCtrl),
> "remotectrl",
> WellKnownObjectMode.Singleton
> );
> //...
>
> break;
> case AppMode.Client:
> RemotingConfiguration.RegisterWellKnownServiceType(
> typeof(RemoteCtrl),
> "remotectrl",
> WellKnownObjectMode.Singleton
> );
>
> RemoteCtrl remoteCtrl =
> (RemoteCtrl)RemotingServices.Connect(
> typeof(RemoteCtrl),
> "tcp://localhost:13100/remotectrl"
> );
> remoteCtrl.GetPatternGeneratorCtrl(out patGenCtrl);
> //...
>
> break;
> }You need to RegisterChannel on the client side as well, like the error says. You can do this withou specifing a port: ChannelServices.RegisterChannel(new TcpChannel()); You also probably don't want to RegisterWellKnownServiceType on the client side. Strange if works under windows though. -- sam clegg :: [EMAIL PROTECTED] :: http://superduper.net/ :: PGP : D91EE369 $superduper: .signature,v 1.13 2003/06/17 10:29:24 sam Exp $
pgp00000.pgp
Description: PGP signature
