“无法强制转换透明代理以进行输入"从powerpoint加载项调用第三方dll时出现错误 [英] "Unable to cast transparent proxy to type" error when calling a third-party dll from powerpoint add-in
问题描述
我正在从自己的Powerpoint加载项中调用第三方dll(与我们合作的合作伙伴公司的加载项的接口)中的一些代码.
I'm calling some code from a third-party dll (an interface to an add-in from a partner company that we work with) from my own powerpoint add-in.
他们提供了一个示例解决方案,其中的以下代码可以正常工作.
They have provided a sample solution where the following code works as expected.
Microsoft.Office.Core.COMAddInthirdPartyAddin = app.COMAddIns.Item("thirdthirdyAddin");
IthirdPartyService x = thirdPartyServiceFactory.GetThirdPartyService(thirdPartyAddin.Object);
Microsoft.Office.Core.COMAddIn thirdPartyAddin= app.COMAddIns.Item("thirdPartyAddin");
IthirdPartyService x =thirdPartyServiceFactory.GetThirdPartyService(thirdPartyAddin.Object);
我正在尝试使用相同的代码并在我的插件中调用它.
I am trying to use the same code and call it inside my plug-in.
发生的事情是,我绑定到thirdPartyAdd-in很好.但是,当我调用第二行以获取第三方服务的接口时,出现以下异常:
What is happening is that I bind to a thirdPartyAdd-in just fine. However, when I call the second line, to get the the interface to the thirdparty service, I get the following exception:
无法将透明代理转换为类型IthirdPartyService".
"Unable to cast transparent proxy to type IthirdPartyService" .
可能是什么问题?我想我已经搜索了每个由Google生成的关于此问题的主题,没有任何帮助.
What could possibly be the issue? I think I've searched through every single google-generated topic on this issue, an nothing helped.
提前谢谢
推荐答案
程序员,
我正在尝试让其他人参与此案,请耐心等待.
I am trying to involve some other one into this case, wait it patiently, please.
谢谢.
最好的问候
这篇关于“无法强制转换透明代理以进行输入"从powerpoint加载项调用第三方dll时出现错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!