Discussion:
Clients connecting to to different server processes
(too old to reply)
r***@gmail.com
2008-10-16 13:50:27 UTC
Permalink
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
Alejandro Gaio
2008-10-22 17:56:40 UTC
Permalink
Could you post the server registration code with the remoting framework?
Maybe there's something misconfigured.
Post by r***@gmail.com
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
Loading...