Re: Deploying client and server apps
From: Bob Rundle (rundle_at_rundle.com)
Date: 03/10/05
- Next message: Wim Denayer: "Re: Remote application only works in dll (assemblies) are also installed on locally."
- Previous message: Paul K: "Deploying client and server apps"
- In reply to: Paul K: "Deploying client and server apps"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 10 Mar 2005 13:22:26 -0700
Paul,
Your server is accessing classes in your client app. You need to factor out
shared code into an assembly that can be shipped with both the client and
server. There are two approaches to this...(1) use interfaces to define
remoting or (2) use abstract classes. If you are using remoting events,
then things become a little sticky. You have to create an event wrapper can
reside in the shared assembly and is instantiated in the client.
Regards,
Bob Rundle
"Paul K" <PaulK@discussions.microsoft.com> wrote in message
news:3C51C468-9358-47A8-80C2-CB90E840A608@microsoft.com...
> After I finished my remoting client and server apps, I created a separate
> deployment package for each:
>
> Client Package:
> Client app
> Common assembly containing the MarshalByRef classes
>
> Server Package:
> Server app
> Common assembly containing the MashalByRef classes
>
> I install and run the server app, and everything is fine.
> I install the client app, but when I run it I get the error message
> "Cannot
> find the assembly TRCMSTelecommClient" when I try to attach to the server
> events. TRCMSTelecommClient is my client app.
>
> If I put the client app in the same folder as the server app everything
> works normally.
>
> I'm not sure what, if any, code would help.
>
> Does anyone have any suggestions?
>
> Thanks!
>
> Paul K
- Next message: Wim Denayer: "Re: Remote application only works in dll (assemblies) are also installed on locally."
- Previous message: Paul K: "Deploying client and server apps"
- In reply to: Paul K: "Deploying client and server apps"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|