Re: Passing MarshalByRef object to Remoted Server

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi sbparsons

If I understand you, what you are trying to do it get the client to use IPC to talk to the server, which is using TCP?
If so, then no. You can't do that.

If you want your client to talk to different end points, using different channels, then that is possible.
Also, you can use WCF (part of .NET 3.0) to have your server listen on different channels.
i.e. The client talks to the server using TCP, but the GUI talks to the server using IPC.

HTH

--
Ged Moretta
Senior Software Engineer
AppSense Ltd
www.appsense.com

-----------------------------------------------------------------------
This signature isn't automatic. I have to type it manually every time.


"sbparsons" <sbparsons@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:3266CBE3-F020-4433-8532-074CD75C8578@xxxxxxxxxxxxxxxx
Right - I found the problem so please disregard the original post.

I had an IPC channel configured in the Client config file and as soon as I
commented that out my object was available on the server.

I wonder if it's then possible to mix IPC with TCP in this scenario - I was
planning on using IPC between the client and a GUI but it looks as though TCP
will have to stick.

"sbparsons" wrote:

Please could someone let me know if this is possible:

I have a server object exposed through remoting on one PC and a client
object that gets a proxy to this server object.

The client object configures and registers a channel as per:

System.Collections.IDictionary properties;
properties = new System.Collections.Hashtable();
properties["name"] = "client";
properties["priority"] = "1";
properties["port"] = 0;
ChannelServices.RegisterChannel(new TcpChannel(properties,
null, null), false);

Once a connection has been made, the client calls the following on the
server proxy:
_remoteMaster.ConnectToLibrary((IClient)this)

The IClient interface exists on both machines.

During debugging I can step through to the above line and into it - and then
on the remote server, I can step through the ConnectToLibrary function and
all is well until...

As soon as I attempt to reference a property on the IClient object I get the
following error:
"Failed to connect to an IPC Port: The system cannot find the file specified."

The strange thing is the IPC reference, as I am using TCP.
Though this scenario did work while I had both master and client on the same
machine (though not referencing each other).

I hope that this scenario is clear. Looking forward to a bit of help on this
one.

.



Relevant Pages

  • Re: Netzwerkproblem GBit -> 100MBit
    ... GBit-Kette - flow control zwingend notwendig sei. ... zwischen Client und Server. ... Das kann TCP an der Stelle nicht mehr leisten. ...
    (de.comp.sys.novell)
  • suspect bug in vge(4)
    ... The high-level view of the problem is that the client seems to stall ... HTTPS server. ... not only printed for TLS/SSL issues but simply also for broken TCP ... To me it sounds like a broken implementation of hardware generated ...
    (freebsd-current)
  • Re: Log Out Issues
    ... UDP is the way to go for internet games. ... Apparently the extra overhead in TCP can cause a lot more lag in your game, ... >> Lets say the client sends a log out request to the server reliably. ...
    (microsoft.public.win32.programmer.networks)
  • Re: Log Out Issues
    ... your perormance may be worse than TCP. ... would be if your protocol anticipates packet loss and does not ... >>> Lets say the client sends a log out request to the server reliably. ...
    (microsoft.public.win32.programmer.networks)
  • Re: [2.6.24.3][net] bug: TCP 3rd handshake abnormal timeouts
    ... server via TCP and non-persistent connections and all application level ... "Sometimes" when establishing a TCP connection to the server, ... Here is a simplified version of what _both_ the server and the client ...
    (Linux-Kernel)