0

我使用 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.

4

1 回答 1

0

此问题是由尝试加载 UI 元素时在插件端发生的异常引起的。我设法通过附加到插件的进程并逐步执行将 UI 提供给主机的代码来解决它。

于 2014-06-12T09:17:25.377 回答