我使用 System.AddIn (MAF) 设计了一个 API,以允许独立于主机加载 WPF 插件。
目前,API 使用 AppDomains 来提供分离,但是由于与 AppDomains 相关的限制,我试图将实现切换为使用 AddInProcesses。我一直使用以下项目作为模板:http ://www.cnblogs.com/Files/sheva/Process.zip
我的初始实现似乎工作正常,我能够跨隔离边界加载 WPF 元素,但我在尝试加载复杂的 Telerik 控件时发现了问题,例如。RadRibbonView,导致以下异常:
An exception of type 'System.Runtime.Remoting.RemotingException' occurred in mscorlib.dll but was not handled in user code
Additional information: Failed to read from an IPC Port: The pipe has been ended.