Ken Kolda
8/16/2004 6:34:00 PM
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