简体   繁体   中英

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). 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. The system cannot find the file specified. at Microsoft.Crm.Sandbox.SandboxCodeUnit.Execute(IExecutionContext context) at Microsoft.Crm.Workflow.Services.ProxyCustomActivity.Execute(CodeActivityContext executionContext)

Assembly 'Microsoft.Xrm.Client' is not used by CRM so it's not present there by default. You can try to merge it with your workflow assembly or put it in GAC at CRM server. In earlier versions of CRM you could also put referenced assemblies to folder 'C:\\Program Files\\Microsoft Dynamics CRM\\Server\\bin'.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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