Hello,
I have developed a custom workflow activity and want to deploy it on my CRM server (on-premise CRM 2016).
I have tried to deploy it using Plugin registration tool and it got deployed successfully, but it is throwing error related to other dlls(SharePoint dll or OpenXML dll) as I am using the other dlls to work with the word document. So now my question is, how can I deploy all the dlls which got generated in debug folder.
Even if we try to deploy the custom workflow activity using Plugin registration tool, it only allows to select single assembly which is related to workflow activity.
So can anyone help me on how to deploy the custom workflow activity using Plugin registration tool?
Thanks in advance.
*This post is locked for comments
That looks weird. Can you enable tracing and check if there is nothing more there? Because maybe this error is just covering something else.
Hi Pawel,
I have checked the version of my assemblies which are as below:
My CRM version is Microsoft Dynamics CRM 2016 (8.1.0.359) and when I check the Dynamics CRM assembly version from the (C:\Program Files\Microsoft Dynamics CRM\Server\bin), it is (8.1.0.383).
And the version of Microsoft.Xrm.Sdk.dll from SDK folder is (8.2.0.710).
However I have also downloaded the assembly Microsoft.Xrm.Sdk.dll (8.1.0.235) from NuGet package and replaced it with on SDK folder.
But still I am getting the same error.
Basically the error says that your Plugin references Sdk version 8.0.0.0 and CRM can't load such assembly. So my best guess is that you don't have CRM 2016... Can you check version of the Sdk dll in you CRM installation folder (most likely C:\Program Files\Microsoft Dynamics CRM\Server\bin)
Hi Pawel,
Below is the full error details as below:
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Unable to load plug-in assembly.
Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
at Microsoft.Crm.Tools.Libraries.RegistrationHelper.RegisterAssembly(CrmOrganization org, String pathToAssembly, CrmPluginAssembly assembly)
at Microsoft.Crm.Tools.AssemblyRegistration.PluginRegistrationViewModel.btnregisterClick()
@Pawel, let me check and will get back to you.
Thanks
Please make sure you are using correct Plugin Registration Tool version (exactly the same version as your CRM). Can you post the full error that you are getting?
Hi Pawel, Thanks for your reply.
I have On premise CRM server and tried to register all the dlls using gacutil. Now when I try to register the workflow activity assembly using Plugin registration tool, I am getting the below error:
Could not load the assembly Microsoft.Xrm.Sdk.dll version 8.0
Any idea?
Hi,
Like Andrii suggested you can merge dll's into one. But if this is On-Premise deployment then you can also register this dll in GAC and it should work
Hello,
I believe what you need is to merge all required assemblies into one using ILmerge - nicknow.net/dynamics-crm-ilmerge-dll-plugin
André Arnaud de Cal...
292,111
Super User 2025 Season 1
Martin Dráb
230,934
Most Valuable Professional
nmaenpaa
101,156