[Mono-devel-list] Remoting
Lluis Sanchez
lluis at ximian.com
Tue Aug 12 11:12:06 EDT 2003
[snip]
> Ok, so I pursue my testing not using directly the dll
> I had on MS but using the code.
> It begins like this:
> RemotingConfiguration.Configure("app.exe.config");
> IRemObject remObject =
> (IRemObject)RemotingServices.Connect(typeof(IRemObject),
> url);
>
> The first method returns the NotImplementeException.
> The Connect needs a registered Channel. I tried with
> the ChannelServices.GetChannel but also got the same
> exception.
Yes, RemotingConfiguration.Configure is not yet implemented.
You should register the channel using ChannelServices.RegisterChannel.
For example:
TcpChannel ch = new TcpChannel(0);
ChannelServices.RegisterChannel (ch);
After that, the call to Connect will work.
>
> I looked at the samples and the remoting ones are
> using the RealProxy class. This one could solve my
> problem but it needs the server-side class
> MarshalByRefObject, as far as I can understand. I
> wanted to use an interface to connect to the server
> (as I use with Connect).
>
> Can anyone help me on this? Or maybe suggest another
> way of doing it.
>
> Thanks a lot!
> Regards,
> Sandra
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
More information about the Mono-devel-list
mailing list