0
votes

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)

1

1 Answers

0
votes

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'.