Serialization and remoting with dynamic appdomains



Hello all, I am attempting something tricky with remoting and dynamic
AppDomains:

I have client A, server B, server C, and assembly X.
A, B, and C are all on seperate computers, with an identical copy of
assembly X available to each.

Client A statically references assembly X.

I would like Servers B and C to dynamically reference assembly X,
through a secondary AppDomain in each server process.

I would like Client A to access server B through remoting, passing in
an object from assembly X. Then I would like server B to process this
object (in the dynamic AppDomain), and use remoting to talk to the
corresponding dynamic AppDomain on server C, where more processing
occurs. The results are sent back from C to B and finally to A, where
the results are made visible.

So far, I have run into the problem that .NET remoting is set up per
AppDomain, so if a dynamic appdomain is created, it needs to register
its own remoting services, since the serialization code in the original
AppDomain won't know about dynamic assembly X. This means that every
corresponding appdomain pair on B and C need to set up their own
private remoting links, which seems wasteful.
Wrappers and interfaces won't help me here because they will have to
cross the serialization boundary, polluting AppDomains in the process.

How should I go about doing this?

Any help is appreciated.

.



Relevant Pages

  • Re: Events in .Net Remoting
    ... I am writing with respect to the Events in .Net Remoting that I had ... another channel for the callbacks..both on client side. ... Then I force a method on the server end (through a GUI control on the ... >> the regular client side requests still work fine. ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: passing structs (setializable) object in web service
    ... The philosophy of webservices is different than that of remoting. ... follow Seely's advice as Christoph pointed out earlier - you have to modify ... > having total control over both client and server types. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Delegate Failure after Migration to .NET 2.0 - Vista
    ... remoting to work in .NET 2.0 for you? ... ActivatedClientTypeEntry entry = new ... I make the single below call in order to register my server type. ... the client. ...
    (microsoft.public.dotnet.languages.csharp)
  • Reuse of Remoting Channels...
    ... makes it possible for the server to know the identity of the caller. ... If my client is on the other side of a Windows 'realm' (as in the ... RemotingConfiguration options) to reject any clients whose credentials ... "Remoting server cannot be reached. ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: soapsuds
    ... pre-instantiated exe running in a singleton mode, for remoting, even if you ... Revised framework implementations will probably not break your application ... We can then compile the client using this code which allows us ... Both client and server are ...
    (microsoft.public.dotnet.framework.remoting)