简体   繁体   English

使用早期绑定的MS CRM自定义工作流

[英]MS CRM custom workflow using early bound

I have created custom workflow using early bound.The problem is that when I run my custom workflow in MS CRM 2013, I am getting unexpected error(that i mentioned below). 我使用早期绑定创建了自定义工作流。问题是,当我在MS CRM 2013中运行自定义工作流时,出现了意外错误(我在下面提到)。 Can anybody solve this? 谁能解决这个问题?

Plugin Trace: 插件跟踪:

[early binding: early_binding.CustomWorkflowEarly]
[early binding (1.0.0.0): early_binding.CustomWorkflowEarly]

Error Message: 错误信息:

Unhandled Exception: Microsoft.Crm.CrmException: Unexpected exception from plug-in (Execute): early_binding.CustomWorkflowEarly: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Xrm.Client, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. 未处理的异常:Microsoft.Crm.CrmException:来自插件的意外异常(执行):early_binding.CustomWorkflowEarly:System.IO.FileNotFoundException:无法加载文件或程序集'Microsoft.Xrm.Client,Version = 6.0.0.0,Culture =中性,PublicKeyToken = 31bf3856ad364e35'或其依赖项之一。 The system cannot find the file specified. 该系统找不到指定的文件。 at Microsoft.Crm.Sandbox.SandboxCodeUnit.Execute(IExecutionContext context) at Microsoft.Crm.Workflow.Services.ProxyCustomActivity.Execute(CodeActivityContext executionContext) 在Microsoft.Crm.Workflow.Services.ProxyCustomActivity.Execute(CodeActivityContext执行上下文)处的Microsoft.Crm.Sandbox.SandboxCodeUnit.Execute(IExecutionContext上下文)处

Assembly 'Microsoft.Xrm.Client' is not used by CRM so it's not present there by default. CRM不使用程序集“ Microsoft.Xrm.Client”,因此默认情况下不存在该程序集。 You can try to merge it with your workflow assembly or put it in GAC at CRM server. 您可以尝试将其与工作流程序集合并,或将其放在CRM服务器的GAC中。 In earlier versions of CRM you could also put referenced assemblies to folder 'C:\\Program Files\\Microsoft Dynamics CRM\\Server\\bin'. 在早期版本的CRM中,您还可以将引用的程序集放在文件夹“ C:\\ Program Files \\ Microsoft Dynamics CRM \\ Server \\ bin”中。

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

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