Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Remoting

Remoting

Scheduled Pinned Locked Moved C#
helpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    Ivan Fernandez
    wrote on last edited by
    #1

    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

    V 1 Reply Last reply
    0
    • I Ivan Fernandez

      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

      V Offline
      V Offline
      Valeria Bogdevich
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups