Groups | Blog | Home
all groups > dotnet remoting > march 2006 >

dotnet remoting : Queries about .NET REMOTING


Amby
3/16/2006 5:06:17 AM
Hi all,

I am working with .NET REMOTING.In that im dealing with Single Server
to Multiple Clients Scenario.I wanna know how to close the port used by
the client .Since im having multiple clients scenario,i want to close
the used port so that it can be made available by other clients.

My Server is Windows Service and clients are web clients.When i am
running the client for first time its working fine and when im
refreshing it it gives me a port error.It says that the port is used.So
i just want to close the used port.

The Error im getting when im refreshing is

Remoting configuration failed with the exception
'System.Runtime.Remoting.RemotingException: The channel 'tcp' is
already registered. at
System.Runtime.Remoting.Channels.ChannelServices.RegisterChannelInternal(IChannel
chnl, Boolean ensureSecurity) at
System.Runtime.Remoting.Channels.ChannelServices.RegisterChannel(IChannel
chnl, Boolean ensureSecurity) at
System.Runtime.Remoting.RemotingConfigHandler.ConfigureChannels(RemotingXmlConfigFileData
configData, Boolean ensureSecurity) at
System.Runtime.Remoting.RemotingConfigHandler.ConfigureRemoting(RemotingXmlConfigFileData
configData, Boolean ensureSecurity)'.

Please help me out in this issue.Waiting for a reply as early as
possible.

Regards,
Amby
p.balamurali NO[at]SPAM gmail.com
3/16/2006 4:50:58 PM

Could you explain what do you mean by refreshing.
The client end-point is anonynmous...so I am wondering what do you mean
by the '"close the port used by the client" ....

You cannot do RegisterChannel of a channel object multiple times with
out unregistering it with the Channelservices .
I hope you are having a remoting config file and not doing
RegisterChannel in the code.

cheers.
Piyush Daiya
3/16/2006 5:09:07 PM
Hi,

Im sorry but i didnt get it, are you refreshing the Windows Service or
Client?

Piyush
[quoted text, click to view]
System.Runtime.Remoting.Channels.ChannelServices.RegisterChannelInternal(ICh
annel
[quoted text, click to view]
System.Runtime.Remoting.RemotingConfigHandler.ConfigureChannels(RemotingXmlC
onfigFileData
[quoted text, click to view]
System.Runtime.Remoting.RemotingConfigHandler.ConfigureRemoting(RemotingXmlC
onfigFileData
[quoted text, click to view]

AddThis Social Bookmark Button