Re: Error in client with remoting

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Allen Anderson (allen_at_sparkysystems.com)
Date: 03/02/04


Date: Tue, 02 Mar 2004 12:00:25 -0700

is the assembly for your client object available to the server?
Remember, when you create an event from the server, its just like the
server is remoting its way back to the client. So the server needs
access to the client assembly.

Allen Anderson
http://www.glacialcomponents.com
mailto: allen@put my website url here.com

On Mon, 1 Mar 2004 04:11:05 -0800, "Shivonne"
<anonymous@discussions.microsoft.com> wrote:

>Hi all
>
>I have created a server and client app using remoting. When an event is fired in the server - the client needs to pick it up. When trying to create the event handler in the client, I get the following error:
>
>Cannot find the assembly Blah, Version=1.0.1521.20819, Culture=neutral, PublicKeyToken=null.
>
>This is the code I am using to create the client object and its event handler:
>
>try
>{
> SpectatorServer obj = (SpectatorServer)
> Activator.GetObject(typeof(Spectator.SpectatorServer), "tcp://localhost:" + GetPort() +"/WatchObject");
> if (obj == null) return "Could not find server...";
> else
> {
> obj.ValueChangedEvent += new SpectatorServer.eventHandler (this.Watcher_ValueChangedEvent);
> return(obj.GetLatest());
> }
>}
>catch (Exception e)
>{
> textBox1.Text += e.Message;
> MessageBox.Show(e.StackTrace);
> return "";
>}
>
>If I take out the line
>
>CODE
>obj.ValueChangedEvent+= new SpectatorServer.eventHandler(this.Watcher_ValueChangedEvent);
>
>the rest runs fine.
>
>Does anyone know what I'm doing wrong that is causing this? I'm using the .NET Framework 1.1 for this.
>
>Let me know if anything is unclear or if you want me to post anything else to clarify this.
>
>Thanks as always
>
>Shivonne



Relevant Pages

  • Re: Critical Section limits?
    ... Can you design away the need for a CS per client? ... server, the client object, and data received for it in the completion ... queueing it to the IOCP read thread so another IOCP read can be issued. ... There again, since my server has a half-life of 90 seconds, maybee I should ...
    (borland.public.delphi.nativeapi)
  • Restart of client application
    ... I have a server apoplication eposing remote object, ... Oject is used by client application and client object is passed as proxy to ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: Setting object callback access permissions
    ... IAccessControl interface? ... > I have a client object which passes a callback interface to a server ... > I can't change process-wide security settings in the client process ...
    (microsoft.public.security)
  • Re: Setting object callback access permissions
    ... IAccessControl interface? ... > I have a client object which passes a callback interface to a server ... > I can't change process-wide security settings in the client process ...
    (microsoft.public.win2000.security)
  • Re: Setting object callback access permissions
    ... IAccessControl interface? ... > I have a client object which passes a callback interface to a server ... > I can't change process-wide security settings in the client process ...
    (microsoft.public.platformsdk.security)