all groups > dotnet remoting > october 2006 >
You're in the

dotnet remoting

group:

Remoted classes and dll dependencies


Remoted classes and dll dependencies leotohill NO[at]SPAM gmail.com
10/17/2006 10:35:43 AM
dotnet remoting: My assembly has a remotable class, and dependencies on some other
application assemblies.

In theory, the remoting client needs only the first assembly, so that
..NET can build the proxy. If possible, I would like to avoid deploying
the other assemblies on the client side.

How can I be assured that .NET will not attempt to load those other
assemblies on the client side? I'm particularly concered about other
classes in that assembly that have static initializers that may call on
the dependent assemblies. Under what conditions will those static
intializers run?

Thanks for any suggestions and advice.

- Leo
Re: Remoted classes and dll dependencies Spam Catcher
10/17/2006 8:57:42 PM
"leotohill@gmail.com" <leotohill@gmail.com> wrote in
news:1161106543.520865.51380@i42g2000cwa.googlegroups.com:

[quoted text, click to view]

Only pass classes that are in a common layer that both the server and
client have access to.

That way you won't use the wrong objects.
Re: Remoted classes and dll dependencies leotohill NO[at]SPAM gmail.com
10/19/2006 6:24:31 AM

[quoted text, click to view]

What do you mean by "only pass classes" ?
Re: Remoted classes and dll dependencies TDC
10/19/2006 7:30:49 AM
Create an assembly that defines just the functionality that you want to
expose to the client. Do this with Interaces. (That should give you
confidence that no code is running that you don't want). Then you just
distrubute this definition assembly, and implement the interfaces on
the server-side.

Tom



[quoted text, click to view]
Re: Remoted classes and dll dependencies Spam Catcher
10/19/2006 3:41:57 PM
"leotohill@gmail.com" <leotohill@gmail.com> wrote in
news:1161264271.715073.290670@i42g2000cwa.googlegroups.com:

[quoted text, click to view]

Only send classes in the common layer to the clients from the server.

Is that what you're doing?

A common layer is a shared DLL/Library/etc that the clients and server
references (i.e. MyObjects.DLL).
Re: Remoted classes and dll dependencies leotohill NO[at]SPAM gmail.com
10/19/2006 3:51:49 PM
Thanks for all the suggestions. The multi-assembly approach is what
I've been doing. I was just hoping to get away from that.


[quoted text, click to view]
AddThis Social Bookmark Button