General information
Title:
Remoting archictecture question
Hello,
I would like to confirm my understanding. I have created
a remote object dll and exposed it using a simple console
server using a tcp channel - port 8080. I have a VB
client which registers and uses this remote object. In
the VB client, I don't see any problem in calling the
remote object public properties or delegates or Async
delegate calls. But, when I try to subscribe an Event
exposed by the remote object using AddHandler statement,
the CLR throws System.IO.IOFileNotFound exception. After
debugging this problem for more than a week, I found that
the remoting server was trying to load the client assembly
whenever a AddHandler call is initiated from the client.
I was able to overcome this error and successfully
subscribe and handle events in the client by simply
copying the client exe in the same directory as the Remote
object host application. What does this mean ? does the
remoting network require client assembly (.dll or .exe)if
it needs to supports events. I personally feel it would
be too expensive because in an ideal situation there will
be one remote object hosted on a server and different
client objects that use the remote object. Am I doing
something wrong or Is there something which I am missing
to do ? Please advice.
thanks in advance.
Regards,
Swamy
P.S: I can try to explain if you feel the problem
description is too confusing.
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only