Re: Architectural Question on Remoting and UI Integration

From: Sunny (sunny_at_newsgroup.nospam)
Date: 02/08/05


Date: Tue, 8 Feb 2005 16:59:01 -0600

In article <C5D855D7-0241-42B2-9124-1205374EC580@microsoft.com>,
DJHughes@discussions.microsoft.com says...
> I have an architectural question concerning the integration of UI elements
> from one application domain into another. The context of the question is
> related to dynamically loadable/unloadable plugins which contain UI.
>
> While it is possible to load and interact with forms belonging to another
> application domain, is it possible to integrate them into the user interface
> of the current application domain?
>
> Example: An application has a form with a panel that is used as a
> placeholder. The application loads a plugin into a separate AppDomain. The
> plugin has a form we wish to load into the placeholder as a child form (i.e.,
> add to the placeholder=3F=3F=3Fs Controls collection).
>
> My current research leads me to believe this is not possible. I get the
> error, =3F=3F=3FRemoting cannot find field parent on type X=3F=3F=3F. It appears that
> Remoting cannot access private members properly across the context boundary.
>
> Can anyone iconfirm this is true, or provide some general guidance on how to
> solve this issue?
>

You can not do this that way. Only public fields and methods are
accessible across the domain boundaries. But your scenario is a good
candidate for a Builder pattern.

Sunny



Relevant Pages

  • Architectural Question on Remoting and UI Integration
    ... I have an architectural question concerning the integration of UI elements ... While it is possible to load and interact with forms belonging to another ... The application loads a plugin into a separate AppDomain. ... Remoting cannot access private members properly across the context boundary. ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: Force Load DLL From Different Dir?
    ... try load the version MyAddIn bound to at compile time. ... Actually this is NOT version related, but context related: Assemblies can ... Microsoft Online Community Support ...
    (microsoft.public.dotnet.framework)
  • Re: Complex Problem with AppDomains, Assembly Loading Contexts and COM Interop
    ... dynamically loaded into separate app domains in the context of an .Net ... extension running in a third party executable via COM Interop. ... to load such an assembly. ... Just sign and GAC your COM-visible assemblies. ...
    (microsoft.public.dotnet.framework.clr)
  • weird ACCDDS.DLL error
    ... 'LoadFrom' binding context of the AppDomain with ID 1. ... the failure was: System.BadImageFormatException: Could not load file ... No application configuration file found. ...
    (microsoft.public.office.developer.com.add_ins)
  • RE: Null Point in IWMSContext.GetStringValue
    ... then your plugin will get disabled. ... I was querying a context that was ... not while processing WMS events, especially when you try to query any WMS ... ResponseBlob, IWMSContext pUserCtx, IWMSContext pPresentationCtx, ...
    (microsoft.public.windowsmedia.server)

Loading