r***@gmail.com
2008-10-16 13:50:27 UTC
Hello all,
I have a client/server app running .net remoting. I am using singleton
and the server keeps track of clients through a local object
collection. It uses this collection to send events among other things.
Server is created through an interface in a shared library and i am
using the (IMyServer)Activator.GetObject(typeof(IMyServer)...
approach.
The server itself is hosted in a windows service.
The problem is that when one client unsubscribes from the server and
connects again, it seems it sometimes connects to a second instance of
the server. That instance can see the trafic going through the
channel, but it seems it is talking to another server object with its
own collections and data. I have debugged (as far as its possible) and
can only conclude with two different server instances talking on the
same channel.
Have anyone experienced this? And is it possible to monitor server
instances in some way?
Regards,
Rune Kristiansen
I have a client/server app running .net remoting. I am using singleton
and the server keeps track of clients through a local object
collection. It uses this collection to send events among other things.
Server is created through an interface in a shared library and i am
using the (IMyServer)Activator.GetObject(typeof(IMyServer)...
approach.
The server itself is hosted in a windows service.
The problem is that when one client unsubscribes from the server and
connects again, it seems it sometimes connects to a second instance of
the server. That instance can see the trafic going through the
channel, but it seems it is talking to another server object with its
own collections and data. I have debugged (as far as its possible) and
can only conclude with two different server instances talking on the
same channel.
Have anyone experienced this? And is it possible to monitor server
instances in some way?
Regards,
Rune Kristiansen