all groups > dotnet remoting > february 2004 >
You're in the

dotnet remoting

group:

Unregister channel registered using configuration file


Unregister channel registered using configuration file cjohns NO[at]SPAM telkomsa.net
2/26/2004 11:24:15 PM
dotnet remoting:
I'm trying to unregister a channel which was registered using a
configuration file (using RemotingConfiguration.Configure).

I can't use ChannelServices.Unregister(mychannel), because I do not
have a channel object because I did not register it manually.

I could use:
IChannel this_channel = ChannelServices.GetChannel(my_channel_name);
ChannelServices.UnregisterChannel(this_channel);
but as the channel name is specified in the configuration file, I
don't want to hardcode in the code.

I don't want to unregister all the channels, just the one I'm
currently using.

Is there any way to do this? Or am I better off just reading the xml
config file for the channel settings and then setting up the channels
Unregister channel registered using configuration file Kent
2/27/2004 6:38:29 AM
Try RemotingConfiguration.Configure(Nothing). Not sure if it works, but I saw somewhere in the docs that it would.

[quoted text, click to view]

___
AddThis Social Bookmark Button