Hi,
I'm trying to merge my Custom Workflow dlls using ILMerge. I followed the step to set CopyLocal to false for Microsoft.Xrm.Sdk, Microsoft.Crm.Sdk.Proxy,Microsoft.Sdk.Workflow and Microsoft.IdentityModel.
When I executed my workflow in CRM, I got the error:
Unexpected exception from plug-in (Execute): MyWorkflow.MyWorkflow: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
So I added back the Microsoft.Xrm.Sdk dll (CopyLocal to true), and updated my workflow.
This time I got the exception:
Unexpected exception from plug-in (Execute): MyWorkflow.MyWorkflow: System.Security.VerificationException: Operation could destabilize the runtime.
*This post is locked for comments
I have the same question (0)