【问题标题】:Parameter name: The plug-in type could not be found in the plug-in assembly参数名称:在插件程序集中找不到插件类型
【发布时间】:2015-08-03 11:17:55
【问题描述】:

我使用开发人员工具包为本地 Dynamics CRM 2011 开发了一个插件。我没有更新默认代码,只是简单地部署了它。但我收到异常。我不知道它有什么问题。以下是异常详情。

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: System.ArgumentNullException: Value cannot be null.
Parameter name: The plug-in type could not be found in the plug-in assembly: STGDevPlugin.Plugins.PreValidateAccountCreateDetail: 
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
  <ErrorCode>-2147220970</ErrorCode>
  <ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
  <Message>System.ArgumentNullException: Value cannot be null.
Parameter name: The plug-in type could not be found in the plug-in assembly: STGDevPlugin.Plugins.PreValidateAccountCreate</Message>
  <Timestamp>2015-08-03T10:43:33.5989514Z</Timestamp>
  <InnerFault i:nil="true" />
  <TraceText>

[STGDevPlugin.Plugins: STGDevPlugin.Plugins.PreValidateAccountCreate]
[7122c821-cc39-e511-8aa3-005056b04acd: PreValidateAccountCreate]


</TraceText>
</OrganizationServiceFault>

【问题讨论】:

    标签: c# plugins dynamics-crm-2011


    【解决方案1】:

    您能否验证您是否拥有相同的 DLL 版本

    Microsoft.Xrm.Sdk 和 Microsoft.Crm.Sdk

    包含在您的 GAC 中?

    您的 GAC 中可能有 5.0.0.0,您的解决方案中可能有 6.0.0.0 或其他方式。

    【讨论】:

    • 我有相同的版本6.0.0.0
    • 问题通过删除 Microsoft.Xrm.sdk 并再次添加到解决方案的引用中得到解决。
    • 太好了,玩得开心编码
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-11-06
    • 1970-01-01
    • 2012-03-21
    • 2011-02-27
    • 1970-01-01
    • 1970-01-01
    • 2023-02-05
    相关资源
    最近更新 更多