Re: problem unregistering channel

From: Ken Kolda (ken.kolda_at_elliemae-nospamplease.com)
Date: 08/16/04


Date: Mon, 16 Aug 2004 11:33:51 -0700

You shouldn't need to unregister your channel unless you want to stop using
it before your program terminates. So, I doubt this is the problem based on
the code you've shown.

Can you produce a small, functioning code sample that reproduces this error?

Ken

"Phl" <killkennyhouse@hotmail.com> wrote in message
news:55863e96.0408160819.52620c91@posting.google.com...
> hi
>
> In my cleint, I registered channel this way:
> TcpChannel chan = new TcpChannel();
> ChannelServices.RegisterChannel(chan);
>
> when i run my program again it complains that the channel has been
> registerd and bombs. So I do the following
>
> ChannelServices.UnregisterChannel(chan);
>
> It then complains that it can't find this chan. So I think that it's
> just trying to unregister a newly generated channel.
>
> How do find the existing registered channel, so I can unregister the
> existing channel?
>
> thx



Relevant Pages

  • Re: remoting problem
    ... There's really no need to unregister the channel. ... and leave it for the entire run of the app. ... > My server is in a dll and a host application activates the server by ...
    (microsoft.public.dotnet.framework)
  • Re: SigleTon definitive question
    ... There is no reason to unregister the channel after each call. ... the first function call to a server component wastes ... >> or less the same time in both clients. ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: how to disconnect properly
    ... > So Disconnect does not unregister the uri. ... >>foreach (IChannel channel in ChannelServices.RegisteredChannels) ... > But you do not need to close and unregister the channel. ... >>two different objects found with the same uri. ...
    (microsoft.public.dotnet.framework.remoting)
  • Unregistering a channel
    ... This one should be used to unregister a channel once the applicaiton ... however, if the configuration was done using a configuration file, ...
    (microsoft.public.dotnet.framework.remoting)
  • [NEWS] Some IRC Servers Auto-DeOP Users Too Slowly
    ... and as a result the person who enters the channel has operator ... If nobody is in the channel, the channel modes seem to be resetted, ... with the ChanServ commands. ... enter the empty but registered channel in which you want to set the topic ...
    (Securiteam)