Re: Error in client with remoting
From: Allen Anderson (allen_at_sparkysystems.com)
Date: 03/02/04
- Next message: Allen Anderson: "Re: How to control a timeout and Remoting stops working"
- Previous message: Sunny: "Re: how to know information of a remote object, that ist reqistered."
- In reply to: Shivonne: "Error in client with remoting"
- Next in thread: Shivonne: "Re: Error in client with remoting"
- Reply: Shivonne: "Re: Error in client with remoting"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Allen Anderson: "Re: How to control a timeout and Remoting stops working"
- Previous message: Sunny: "Re: how to know information of a remote object, that ist reqistered."
- In reply to: Shivonne: "Error in client with remoting"
- Next in thread: Shivonne: "Re: Error in client with remoting"
- Reply: Shivonne: "Re: Error in client with remoting"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|