简体   繁体   English

具有MAF AddInProcess和Telerik RadRibbonView的插件导致异常

[英]Plugin with MAF AddInProcess and Telerik RadRibbonView causes exception

I have designed an API using System.AddIn (MAF) in order to allow the loading of WPF Plugins in isolation from the Host. 我设计了使用System.AddIn(MAF)的API,以允许独立于主机加载WPF插件。

Currently the API uses AppDomains to provide the separation, however due to the limitations associated with AppDomains I am trying to switch the implementation over to using AddInProcesses instead. 目前,API使用AppDomains提供分隔,但是由于与AppDomains相关的限制,我试图将实现切换为使用AddInProcesses。 I've been using the following project as a template: http://www.cnblogs.com/Files/sheva/Process.zip 我一直使用以下项目作为模板: http : //www.cnblogs.com/Files/sheva/Process.zip

My initial implementation seems to work ok and I am able to load WPF elements across the isolation boundary, but I have found issues when attempting to load complex Telerik controls eg. 我的最初实现似乎正常,并且能够跨隔离边界加载WPF元素,但是在尝试加载复杂的Telerik控件时发现了问题。 RadRibbonView, resulting in the following exception: 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.

This issue was caused by an exception occuring on the plugin side while trying to load the UI elements. 此问题是由尝试加载UI元素时插件侧发生的异常引起的。 I managed to resolve it by attaching to the plugin's process and stepping through the code that serves up the UI to the host. 我设法解决了这个问题,方法是附加到插件的过程中,并逐步完成将UI提供给主机的代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM