【发布时间】:2015-07-23 23:48:07
【问题描述】:
我遇到了一个非常相似的问题:
Dynamics CRM 2011 - The plug-in type could not be found
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=7.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: Enlighten.CRM.Customisations.Job.CreateJobDetail:
<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">
<KeyValuePairOfstringanyType>
<d2p1:key>CallStack</d2p1:key>
<d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string"> at Microsoft.Crm.Sandbox.SandboxAppDomainHelper.Execute(IServiceEndpointNotificationService serviceBusService, IOrganizationServiceFactory organizationServiceFactory, String pluginTypeName, String pluginConfiguration, String pluginSecureConfig, IPluginExecutionContext requestContext)
at Microsoft.Crm.Sandbox.SandboxAppDomainHelper.Execute(IServiceEndpointNotificationService serviceBusService, IOrganizationServiceFactory organizationServiceFactory, String pluginTypeName, String pluginConfiguration, String pluginSecureConfig, IPluginExecutionContext requestContext)
at Microsoft.Crm.Sandbox.SandboxWorker.Execute(SandboxCallInfo callInfo, SandboxPluginExecutionContext requestContext, Guid pluginAssemblyId, Int32 sourceHash, String assemblyName, Guid pluginTypeId, String pluginTypeName, String pluginConfiguration, String pluginSecureConfig, SandboxRequestCounter& workerCounter)</d2p1:value>
</KeyValuePairOfstringanyType>
</ErrorDetails>
<Message>System.ArgumentNullException: Value cannot be null.
Parameter name: The plug-in type could not be found in the plug-in assembly: Enlighten.CRM.Customisations.Job.CreateJob</Message>
<Timestamp>2015-07-23T23:32:27.2903692Z</Timestamp>
<InnerFault i:nil="true" />
<TraceText>
[Enlighten.CRM.Customisations.Job.Deploy: Enlighten.CRM.Customisations.Job.CreateJob]
[d2c5efd5-452b-e511-80c4-00155d00461a: Opportunity Create]
</TraceText>
</OrganizationServiceFault>
这是我在 CRM 2011 中使用的现有插件。主要区别在于我使用 nuget 包将 SDK 更新为针对 7.0.0.1。
https://www.nuget.org/packages/Microsoft.CrmSdk.Extensions/7.0.0.1
上一个问题表明这是版本差异,但据我所知,如果有的话,我的部署是较新的版本(如下面的部署管理器中所示),因此 SDK 版本应该不是问题。
有什么想法吗?
【问题讨论】:
-
您的插件安装在哪个版本的 Dynamics CRM 上,2011 年还是 2015 年?在您的问题中,您提到了 2011 年,但您使用
dynamics-crm-2015标记了您的问题。
标签: c# dynamics-crm dynamics-crm-2015