简体   繁体   English

参数名称:在插件程序集中找不到插件类型

[英]Parameter name: The plug-in type could not be found in the plug-in assembly

I've developed a plugin for Dynamics CRM 2011 on-premises using developers toolkit. 我使用开发人员工具包为本地Dynamics CRM 2011开发了一个插件。 I've not updated the default code and simply deployed it. 我没有更新默认代码并只是部署它。 But I receive exception. 但我收到例外。 I don't what is the problem with it. 我不知道它有什么问题。 Following is the Exception Details. 以下是例外详细信息。

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>

Could you verify that you have the same DLL version of 你能否验证你有相同的DLL版本?

Microsoft.Xrm.Sdk and Microsoft.Crm.Sdk Microsoft.Xrm.Sdk和Microsoft.Crm.Sdk

included in your GAC? 包含在您的GAC中?

You probably have 5.0.0.0 in your GAC and 6.0.0.0 in your solution or the other way around. 您可能在GAC中使用5.0.0.0,在解决方案中使用6.0.0.0,反之亦然。

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

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