[Mono-list] Remoting

Lluis Sanchez lluis@ximian.com
04 Aug 2003 20:42:16 +0200


On dl, 2003-08-04 at 16:00, Wilhelm Patrick wrote:

[snip]
> under windows everything work's fine, 

using MS.NET or Mono in Windows?

> but when I try to run it under linux I
> get errors: (the error is on client side: running the server doesn't make
> any problems. For testing I run server and client on the same machine. I
> have no firewall on my system)
> first I run my server:
> LINUX-S-01: # mono programm.exe -server
> 
> then I try to start the client from another console:
> LINUX-S-01: # mono programm.exe -client
> Unhandled Exception: System.Runtime.Remoting.RemotingException: Cannot
> create channel sink to connect to URL tcp://localhost:13100/remotectrl. An
> appropriate channel has probably not been registered.
> in <0x00079> 00
> System.Runtime.Remoting.RemotingServices:GetClientChannelSinkChain
> (string,object,string&)
> in <0x000c6> 00
> System.Runtime.Remoting.RemotingServices:GetOrCreateClientIdentity
> (System.Runtime.Remoting.ObjRef,System.Type)
> in <0x00017> 00 System.Runtime.Remoting.RemotingServices:GetRemoteObject
> (System.Runtime.Remoting.ObjRef,System.Type)
> in <0x00047> 00 System.Runtime.Remoting.RemotingServices:Connect
> (System.Type,string)
> in <0x00154> 00 NProg.MainFrame:Init ()
> in <0x000d5> 00 NProg.MainFrame:.ctor (string[])
> in <0x0002e> 00 NProg.ProgApp:OnInit ()
> in <0x00011> 00 wx.App:AppInitializer (object,wx.Event)
> in <0x0005a> 01 System.MulticastDelegate:invoke_void_object_Event
> (object,wx.Event)
> in <0x0006c> 00 wx.EvtHandler:MarshalEvent (intptr,int)
> in <0x00035> 05 wx.EvtHandler:MarshalEvent (intptr,int)
> in (unmanaged) 06 wx.App:wxApp_Run (int,string[])
> in <0x00004> 06 wx.App:wxApp_Run (int,string[])
> in <0x00026> 00 wx.App:Run ()
> in <0x0003d> 00 NProg.ProgApp:Main (string[])

The error is that you need to register the TcpChannel in the client. In
the code you sent it is not registered. Maybe are you using a
configuration file? Notice that remoting configuration files do not yet
work in mono.

- Lluis