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

Question

Question

Custom workflow Activity

asked on September 29, 2014

Greetings,

I am attempting to create a custom activity. I am getting the following error when I try to add the activity to the Workflow admin under custom activities.

 

From previous problems I know this has to do with the targeted platform I am using. Here is my configuration

  1. Platform is set to 64 bit after opening a "LaserFiche Custom Activity Template".
  2. I have selected a single entry, with version 9.0 support.
  3. Using visual studio 2010 because the template is not available in 2012.

 

After the project loads I have the following errors immediately.

Additionally all of the LaserFiche Com objects are the wrong platform version.  I remove these references and add the 64 bit references, and all but 2 errors are resolved.

 

to resolve the other 2 errors I remove the LaserFiche.base, and the LaserFiche.project dlls, and replace them with actual locations that are valid. Although I am not sure what platform they support.

 

Now all errors, and warnings are resolved, and I assume I am ready to create my custom activity.  I have created other activities without these problems.

 

What is interesting all the other workflow references seem to be 32 bit as seen here.

 

The only workflow reference that appears to be 64 bit is the one shown below.

 

I am confused so any guidance you can provide regarding target platform mismatches would be great.  Part of my confusion is I am working on a 64 bit computer, my workflow server is 64 bit.  so when my runtime installs it only allows 64 bit installation.  Why is visual studio using 32 bit by default?

 

Thanks for the assist

Phil

 

 

 

 


 

0 0

Replies

replied on September 29, 2014

All workflow assemblies are targeted to be "Any CPU" which is MSIL, even the ones in Program Files (x86). Read more about MSIL here.

Unless you need to specifically target x64, I'd try targeting your custom activity assembly to be "Any CPU"

0 0
replied on September 29, 2014

I think I discovered the problem.

the workflow version I was using was 9.01 on the WF server.  the version of the wf sdk I was on my Dev box was 9.1 64 bit.  When I installed the wf SDK 9.03 on my development machine, and checked use the 32 bit I got the same errors when adding the library to the WF Admin Console. However when I installed the same version with 32 bit on the Workflow server all errors were resolved. and I have been able to get the activity to work.

 

Does this make sense?

0 0
replied on October 21, 2014

Hi Phil,

This does make sense. I had a similar issue where my custom acitivity only worked on a 32-bit installation of WF, since my custom references that I imported for my activity also only supported 32-bit. The reverse would've true as well if only supported on 64-bit.

So your WF architecture and your Custom Activity architecture seems to have a mismatch.

Cheers

Sheldon

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

Sign in to reply to this post.