Architectural Question on Remoting and UI Integration

From: DJHughes (DJHughes_at_discussions.microsoft.com)
Date: 02/04/05


Date: Fri, 4 Feb 2005 13:17:05 -0800

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’s Controls collection).

My current research leads me to believe this is not possible. I get the
error, “Remoting cannot find field parent on type X”. 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?



Relevant Pages

  • Re: Architectural Question on Remoting and UI Integration
    ... > I have an architectural question concerning the integration of UI elements ... The application loads a plugin into a separate AppDomain. ... > plugin has a form we wish to load into the placeholder as a child form (i.e., ... > 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)