Unregistering a WellKnownClientType in remoting

  • Thread starter Thread starter Aurelio Sablone
  • Start date Start date
A

Aurelio Sablone

How can I unregister WellKnownClientType on my client?

I have the following code on my client:

Dim channel As New TcpChannel
ChannelServices.RegisterChannel(channel)

RemotingConfiguration.RegisterWellKnownClientType(GetType
(IServerRemoteObject), "tcp://max5_server:52000/MaximeyesRe
motingServices/ServerSqlBroker")


Now, if the connection to this remote object happens to
fail, I'd like to unregister the above and register the
same type of remote object which is running on another
server.

I tried just running the command again using a different
server in the URI, but this raises an exception.

Does anyone know how I can unregister this on the client?

Thanks!

Aurelio.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top