Skip to main content

Notifications

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

  • tw0sh3ds Profile Picture
    tw0sh3ds 5,600 on at
    RE: How to deploy custom workflow activity to on-premise CRM 2016

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

  • RE: How to deploy custom workflow activity to on-premise CRM 2016

    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.

  • Suggested answer
    tw0sh3ds Profile Picture
    tw0sh3ds 5,600 on at
    RE: How to deploy custom workflow activity to on-premise CRM 2016

    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)

  • RE: How to deploy custom workflow activity to on-premise CRM 2016

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

  • RE: How to deploy custom workflow activity to on-premise CRM 2016

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

    Thanks

  • Suggested answer
    tw0sh3ds Profile Picture
    tw0sh3ds 5,600 on at
    RE: How to deploy custom workflow activity to on-premise CRM 2016

    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?

  • RE: How to deploy custom workflow activity to on-premise CRM 2016

    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
    tw0sh3ds 5,600 on at
    RE: How to deploy custom workflow activity to on-premise CRM 2016

    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

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,325 Most Valuable Professional on at
    RE: How to deploy custom workflow activity to on-premise CRM 2016

    Hello,

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

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,111 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,934 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans