0
我使用開發人員工具包爲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>
我的版本'6.0.0.0' –
問題通過刪除Microsoft.Xrm.sdk並再次添加到解決方案的參考中得到解決。 –
好,有趣的編碼 –