Error registering workflow to disk


The other day I was working on a CRM workflow activity that I had registered to the database with the plugin registration tool. Later on, I wanted to register the same assembly to disk for easy debugging, but I was confronted with the following exception when trying to register the assembly:

Unhandled Exception: System.Web.Services.Protocols.SoapException: Server was unable to process request.
Detail: <detail><error>
  <description>Assembly can not be loaded from C:\Program Files\Microsoft Dynamics CRM\server\bin\assembly\MyWorkflow.dll.</description>

I thought that maybe I had to run the registration tool as administrator since the path was under `program files’, but this did not help.

It isn’t obvious from the docs, but they mention that you are responsible for copying the assemblies to the target folder under C:\Program Files\Microsoft Dynamics CRM\server\bin\assembly. However, it doesn’t work unless you copy the assembly beforehand, and point the tool to that location when registering the assembly. You can’t register the assembly from another location and then copy the binary afterward.

This limitation is mentioned in the documentation for plugin registration here.


No Responses Yet to “Error registering workflow to disk”

  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: