我使用开发人员工具包为本地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>
答案 0 :(得分:3)
您是否可以验证您具有相同的
DLL版本Microsoft.Xrm.Sdk和Microsoft.Crm.Sdk
是否包含在您的GAC中?
您的GAC中可能有5.0.0.0,解决方案中可能有6.0.0.0,反之亦然。