web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to deploy custom workflow activity to on-premise CRM 2016

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    I believe what you need is to merge all required assemblies into one using ILmerge - nicknow.net/dynamics-crm-ilmerge-dll-plugin

  • Suggested answer
    tw0sh3ds Profile Picture
    5,600 on at

    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

  • Prashant Bhojani Profile Picture
    on at

    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?

  • Suggested answer
    tw0sh3ds Profile Picture
    5,600 on at

    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?

  • Prashant Bhojani Profile Picture
    on at

    @Pawel, let me check and will get back to you.

    Thanks

  • Prashant Bhojani Profile Picture
    on at

    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()

  • Suggested answer
    tw0sh3ds Profile Picture
    5,600 on at

    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)

  • Prashant Bhojani Profile Picture
    on at

    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.

  • tw0sh3ds Profile Picture
    5,600 on at

    That looks weird. Can you enable tracing and check if there is nothing more there? Because maybe this error is just covering something else.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans