【发布时间】:2015-07-13 15:12:08
【问题描述】:
2 周来,我们在 CRM 2015 OnPremise 中遇到了一个完全随机的小问题。当我们进行上传时,随机且没有多大意义(至少根据分析所有代码没有)插件向我们抛出以下异常:
Web Service 插件在 OrganizationId 中失败: fb2630bc-8dc1-e411-80be-bae05bad392c; SdkMessageProcessingStepId: d2713f4e-51b7-e411-80b8-527d00dcf108;实体名称:new_serviciobase; 阶段:30;消息名称:创建;大会名称: Microsoft.Crm.Extensibility.InternalOperationPlugin, Microsoft.Crm.ObjectModel,版本=7.0.0.0,文化=中性, PublicKeyToken=31bf3856ad364e35;班级名称: Microsoft.Crm.Extensibility.InternalOperationPlugin;例外: 未处理的异常:System.Reflection.TargetInvocationException: 调用的目标已抛出异常。
在 System.RuntimeMethodHandle.InvokeMethod(对象目标,对象 [] 参数、签名 sig、布尔构造函数)
在 System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj,Object[] 参数,Object[] 参数)
在 System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr,Binder binder,Object[]参数, CultureInfo 文化)
在 System.Web.Services.Protocols.LogicalMethodInfo.Invoke(对象 目标,Object[] 值)
在 Microsoft.Crm.Extensibility.InternalOperationPlugin.Execute(IServiceProvider 服务提供者)
在 Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext 上下文)
在 Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext 上下文)
内部异常:System.Reflection.TargetInvocationException: 调用的目标已抛出异常。
在 System.RuntimeTypeHandle.CreateInstance(RuntimeType 类型, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
在 System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
在 System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
在 System.Activator.CreateInstance(Type type, Boolean nonPublic)
在 System.Activator.CreateInstance(类型类型)
在 Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.InitializePlugin[T](IOrganizationContext 上下文、步骤描述、步骤描述、SecureConfigurationCache stepSecureConfigurationCache,Type 类型)
在 Microsoft.Crm.Extensibility.V5PluginProxyStep..ctor(Guid stepId, SecureConfigurationCache 步骤SecureConfigurationCache、CrmEventLog eventLog, IOrganizationContext 上下文)
在 Microsoft.Crm.Extensibility.PluginStep..ctor(Guid stepId, SecureConfigurationCache 步骤SecureConfigurationCache、CrmEventLog eventLog, IOrganizationContext 上下文)
在 Microsoft.Crm.Extensibility.PipelineStepFactory.CreateInstance(Guid stepId, IOrganizationContext 上下文)
在 Microsoft.Crm.Caching.PipelineStepCacheLoader.LoadCacheData(Guid 键,ExecutionContext 上下文)
在 Microsoft.Crm.Caching.ObjectModelCacheLoader`2.LoadCacheData(TKey key, IOrganizationContext 上下文)
在 Microsoft.Crm.Caching.CrmMultiOrgCacheBase`2.CreateEntry(TKey key, IOrganizationContext 上下文)
在 Microsoft.Crm.Caching.CrmSharedMultiOrgCache`2.LookupEntry(TKey 键,IOrganizationContext 上下文)
在 Microsoft.Crm.Caching.MessageProcessorCacheLoader.GetCustomizationLevel(MessageProcessor mp,ExecutionContext 上下文)
在 Microsoft.Crm.Caching.MessageProcessorCacheLoader.LoadCacheData(MessageProcessorKey 键,ExecutionContext 上下文) 在 Microsoft.Crm.Caching.ObjectModelCacheLoader`2.LoadCacheData(TKey key, IOrganizationContext 上下文)
在 Microsoft.Crm.Caching.CrmSharedMultiOrgCache`2.LookupEntry(TKey 键,IOrganizationContext 上下文)
在 Microsoft.Crm.Extensibility.InternalMessageDispatcher.TryGetMessageProcessor(MessageProcessorKey 键,ExecutionContext 上下文)
在 Microsoft.Crm.Extensibility.ExtensiblePlatformMessageDispatcher.IsPipelineDefined(MessageProcessorKey 键,ExecutionContext 上下文)
在 Microsoft.Crm.Extensibility.ExtensiblePlatformMessageDispatcher.CreateWithInvocationSource(BusinessEntity 实体、Int32 调用源、ExecutionContext 上下文)
在 Microsoft.Crm.BusinessEntities.BusinessProcessObject.Create(IBusinessEntity 实体,ExecutionContext 上下文)
内部异常:System.IO.FileLoadException:无法加载文件或 程序集‘SCM.CRM.Core,版本=1.0.0.0,文化=中性, PublicKeyToken=369abd01f82b8d9d' 或其依赖项之一。访问是 拒绝。
在 SCM.CRM.Plugins.Plugin..ctor(Type childClassName)
在 SCM.CRM.Plugins.PLGServicioBase..ctor()
这有点让人头疼,因为我们不明白发生了什么,只是有时会失败,有时不会……我们有一个自定义库注册的插件(磁盘)“SCM.Core.dll”,它说自己无法访问...有什么想法吗?
【问题讨论】:
标签: plugins dynamics-crm crm dynamics-crm-2015