all groups > dotnet remoting > september 2005 >
You're in the

dotnet remoting

group:

How to check if remoting server is running?



Re: How to check if remoting server is running? Michael Moreno
9/27/2005 12:00:00 AM
dotnet remoting: I had the same problem...
And please don't laugh about my solution : I created a DCOM server to
know what is running on the remote server and to be able to start/stop
remotely serveurs before calling them !!!

I simply could not find any simple way to - remotely - start/stop
application in .Net (the process class would have been a pain in the
neck to use for remote servers).

--
Michael
----
http://michael.moreno.free.fr/
http://port.cogolin.free.fr/
Re: How to check if remoting server is running? Robert Jordan
9/27/2005 12:00:00 AM
Hi,

[quoted text, click to view]

There is no such "ping" support. Just call a method and
catch the exception.

How to check if remoting server is running? Nicolas
9/27/2005 8:49:47 AM
Hi,

I have a question concerning .NET Remoting. I walked through a couple
of examples in books and on the internet concerning .NET Remoting and
in every code sample I find the following code fragment:

SharedObject = (SharedObject)
Activator.GetObject(typeof(SharedObject),
"tcp://localhost:8085/SharedObjectServer");

if(SharedObject == null) Console.WriteLine("Could not locate server");

When I make use of that code (of course by replacing SharedObject by
my object and after adjusting the url), then when I test wether the
created object is null, the result is always that the object is not
null.

This means in the code sample above that the evaluation of
(SharedObject == null) always fails, even if the remoting server is
not running!

Does anyone know how I can make sure that the remoting server is
running or not?


Best regards,

AddThis Social Bookmark Button