[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.remoting

problem unregistering channel

killkennyhouse

8/16/2004 4:19:00 PM

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
1 Answer

Ken Kolda

8/16/2004 6:34:00 PM

0

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