Remoting
-
Hi!! I've got a problem with remoting that I don't understand... Could you explain me what happend with this code?? When I unregister the channel and try to get the object again, the code throws an exception...:( tCreador = (Creador)Activator.GetObject(tType,"tcp://localhost:8082/Creador"); System.Runtime.Remoting.Channels.IChannel[] chns1 = ChannelServices.RegisteredChannels; ChannelServices.UnregisterChannel(chns1[0]); tCreador = (Creador)Activator.GetObject(tType,"tcp://localhost:8082/Creador"); Regards, Iván. Iván Fernández
-
Hi!! I've got a problem with remoting that I don't understand... Could you explain me what happend with this code?? When I unregister the channel and try to get the object again, the code throws an exception...:( tCreador = (Creador)Activator.GetObject(tType,"tcp://localhost:8082/Creador"); System.Runtime.Remoting.Channels.IChannel[] chns1 = ChannelServices.RegisteredChannels; ChannelServices.UnregisterChannel(chns1[0]); tCreador = (Creador)Activator.GetObject(tType,"tcp://localhost:8082/Creador"); Regards, Iván. Iván Fernández
If you unregistered channel, Client doesn't have means "to talk" to Server. It's the same if would you tried to get reference to object without registering any channel. You have to register channel again before the call of
Activator.GetObject
.
"...hasn't really been well accepted ... as the ratings tell us so far :)" - Nishant S