have remoting with events working on a single machine, but...

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

From: JohnK (JohnK_at_discussions.microsoft.com)
Date: 09/23/04


Date: Thu, 23 Sep 2004 16:07:01 -0700

have remoting with events working on a single machine, but... when I put the
server, client, and remote object on a 2nd machine.... things do not work
completely.. So basically I have the same 3 directories (Client, Server,
RemoteObject) on two machines. I run the server on machine1, the client on
machine2... Now client indeed has access to the remote object... and the
client does call a function on that remote object... as the console for the
server writes out a msg when it gets a request...

public void BroadCastMessage(string msg)
{
 IAsyncResult ar;

  Console.WriteLine("Raising EventHandler1");

  System.Delegate[] invkList = EventHandler1.GetInvocationList();
  IEnumerator ie = invkList.GetEnumerator();
  while(ie.MoveNext())
   {
     RemotingObject.EventHandlerDelegate handler =
(RemotingObject.EventHandlerDelegate)ie.Current;
      try
       {
          ar = handler.BeginInvoke(msg,null,null);
       }

upon calling BeginInvoke, it sits for a second or three... but nothing on
the client occurs...

Now if I ran the client & server on the same machine, things work....

any clues please....



Relevant Pages

  • RE: Remote connectivity problems
    ... do you mean you have added a remote client to SBS ... If you have hardware VPN tunnel setup using Linksys or others, ... In this scenario you have to configure the SBS Server computer to enable ...
    (microsoft.public.windows.server.sbs)
  • Re: Terminal Services Remote Control
    ... You don't need the Remote Desktop Client on the server, ... how do I get Remote Control ...
    (microsoft.public.win2000.termserv.apps)
  • Re: RWW Disconnecting
    ... I have been connected from a remote site for about 3 ... DHCP server and even a wireless access ... the key codes to for Internet access. ... Client Workstations} ...
    (microsoft.public.windows.server.sbs)
  • Re: RWW Disconnecting
    ... Server to test the issue. ... I understand that remote client encounts following error message when RWW ... I strongly suggest that we rerun the Configure E-mail and Internet ...
    (microsoft.public.windows.server.sbs)
  • Re: What doesnt lend itself to OO?
    ... >> proxy and instructs the server to constuct the real object. ... rather than client code. ... If 'clock' is instantiated in the server, ... > for the server interface at the OOA level. ...
    (comp.object)