Testing remote object connection
-
Hi, I'm writing a small class to manage all my singlecall remote object. Ut basically return the transparent proxy of my object through the following code: public object GetProxy() { object proxy=RemotingServices.Connect(myType,myUrl.AbsoluteUri); return proxy; } The problem is that RemotingServices.Connect and Activator.GetObject will not throw any SockectExcpetion if the remote object is not accesible. This will only happen when I try to invoke any of the remote object's methods. One of the main reasons I was making this manager class is to manage all socketExceptions in it. Is there anyway to test for a valid connection using Remoting.Channels.Tcp.TcpClientChannel or through any method of ChannelServices or RemotingServices? I know u can do it through a normal System.Net.Sockets.TcpClient but cant seem to find the way when using the Remoting namespace's specific channels.