You are viewing limited content. For full access, please sign in.

Question

Question

Where do I place a dll reference for a Workflow custom activity?

asked on April 27, 2022 Show version history

I built a custom activity, but am having a difficult time deploying it to others. My custom activity references the PDFSharp.dll. Once I have added the custom activity to the wf administration console and designer, is there somewhere I need to add any references?

0 0

Replies

replied on April 28, 2022 Show version history

Michelle,

When your custom activity first executes a method in the PDFSharp assembly the .NET framework will  attempt to load the correct version of the PDFSharp assembly from the GAC, failing that it will attempt to load it from the folder structure that contains your custom activity assembly.

So the quick answer is to just place the PDFSharp assembly in the same folder as your custom workflow assembly.  The good news is that the PDFSharp assembly does not have any other dependencies so you should be good to go.

Not sure how you are deploying your custom workflow activity but if you are going to do a lot of installations or make your custom activity publicly available then you should probably invest the time to add a setup project to your solution to automate that process.

Finally, not sure where you are placing your custom activity assembly on the workflow server but I tend to place mine on the boot drive of the workflow server in a fairly shallow folder structure that I can be sure the service running workflow will have access to.

1 0
replied on April 28, 2022

Thanks Cliff! It looks like just registering it in the Workflow Admin Console seems to work.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.