无法将“xxxx”类型的对象转换为“Microsoft.Crm.Sdk.IPlugin”

问题描述

尝试使用插件注册工具调试插件中的错误时,无法将“xxxx”类型的对象转换为“Microsoft.Crm.Sdk.IPlugin”类型

我们在内部使用 CRM

这里是完整的错误

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault,Microsoft.Xrm.Sdk,Version=7.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35]]: Unable to cast object of type 'PluginCreatedBy.PluginCreatedByClass' to type 'Microsoft.Xrm.Sdk.IPlugin'.
Detail: <OrganizationServiceFault xmlns="http://schemas.microsoft.com/xrm/2011/Contracts" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <ErrorCode>-2147220970</ErrorCode>
  <ErrorDetails xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
    <keyvaluePairOfstringanyType>
      <a:key>CallStack</a:key>
      <a:value i:type="b:string" xmlns:b="http://www.w3.org/2001/XMLSchema">   at PluginProfiler.Library.PluginAppDomainProxy.ExecuteCore(Stopwatch watch,ProfilerExecutionReport report,Object instance,Object executionParameter)
   at PluginProfiler.Library.AppDomainProxy.Execute(ProfilerExecutionConfiguration configuration,ProfilerExecutionReport report)</a:value>
    </keyvaluePairOfstringanyType>
  </ErrorDetails>
  <Message>Unable to cast object of type 'PluginCreatedBy.PluginCreatedByClass' to type 'Microsoft.Xrm.Sdk.IPlugin'.</Message>
  <Timestamp>2021-07-19T05:18:55.850152Z</Timestamp>
  <InnerFault i:nil="true" />
  <TraceText i:nil="true" />
</OrganizationServiceFault>

已经尝试在 web.config 的运行时标签添加版本行

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...