G
GTi
I have a program that will act as an Remoting server AND client.
This program can be loaded on one macine or it can be loaded on several
machines.
But it will only be one master program available, all the other is
"clients" handling tasks. The master program will dellegate tasks.
When the program starts it will ask if there is any "master" available
on the network (a BROADCAST to all machines). If there is no master
responds it will act as a master. Then it will look for clients. If
there is no clients available it will do all the client and server work
itself.
If a master program respond it will act as a client.
I have looked at .NET remoting and I have several questions:
When testing I put the server and client in the same program but when
registering the client I get a error:
[console printout]
The name of the channel is tcp.
The priority of the channel is 1.
The channel URI is tcp://10.47.26.120:9090.
The object URL is tcp://10.47.26.120:9090/RemoteObject.rem.
The object URI is /RemoteObject.rem.
The channel URI is tcp://10.47.26.120:9090.
Unhandled Exception: System.Runtime.Remoting.RemotingException: The
channel 'tcp' is already registered. at
System.Runtime.Remoting.Channels.ChannelServices.RegisterChannelInternal(IChannel
chnl) at
System.Runtime.Remoting.Channels.ChannelServices.RegisterChannel(IChannel
chnl)
at WindowsAgent.Program.Main(String[] args) in
C:\prog\WindowsAgent\Program.cs:line 111
Press any key to continue . . .
Does anyone have any tip of how I can solve my problem?
Using CLR 2.0
This program can be loaded on one macine or it can be loaded on several
machines.
But it will only be one master program available, all the other is
"clients" handling tasks. The master program will dellegate tasks.
When the program starts it will ask if there is any "master" available
on the network (a BROADCAST to all machines). If there is no master
responds it will act as a master. Then it will look for clients. If
there is no clients available it will do all the client and server work
itself.
If a master program respond it will act as a client.
I have looked at .NET remoting and I have several questions:
When testing I put the server and client in the same program but when
registering the client I get a error:
[console printout]
The name of the channel is tcp.
The priority of the channel is 1.
The channel URI is tcp://10.47.26.120:9090.
The object URL is tcp://10.47.26.120:9090/RemoteObject.rem.
The object URI is /RemoteObject.rem.
The channel URI is tcp://10.47.26.120:9090.
Unhandled Exception: System.Runtime.Remoting.RemotingException: The
channel 'tcp' is already registered. at
System.Runtime.Remoting.Channels.ChannelServices.RegisterChannelInternal(IChannel
chnl) at
System.Runtime.Remoting.Channels.ChannelServices.RegisterChannel(IChannel
chnl)
at WindowsAgent.Program.Main(String[] args) in
C:\prog\WindowsAgent\Program.cs:line 111
Press any key to continue . . .
Does anyone have any tip of how I can solve my problem?
Using CLR 2.0