Custom Activity (code) cannot be used in Workflow Service (xamlx)

Unanswered Custom Activity (code) cannot be used in Workflow Service (xamlx)

  • Thursday, July 19, 2012 2:02 AM
     
     

    Hi,

    I found a retry activity in codeplex (http://retryactivity.codeplex.com/) and tried to use it in my testing workflow service (xamlx).  However, I can't found it in the toolbox. 

    However, if I create a sequential Workflow (code), I can find it in the toolbox and drag it into the workflow.  So, is there anything I need to change in order to use the retry activity in my workflow service?

    p.s. I checked the retryactivity class, there is no xaml interface and inherit from Activity class.

    Thanks!

    Best Regards,

    Emily


    Emily

All Replies

  • Thursday, July 19, 2012 2:51 AM
    Moderator
     
     
    One thing you might want to check - for now I assume you're trying to use the retry activity from a different project. Do both projects target AnyCPU architecture, and the same version of the .net framework?
    Tim
  • Friday, August 03, 2012 2:51 AM
     
     

    Thanks!

    Yes, both projects are target AnyCPU and using .net 4.0.

    Emily


    Emily

  • Friday, August 03, 2012 8:05 PM
    Moderator
     
     

    Also, do they both target full .Net 4.0 framework (or both target the client SKU)?

    Also please try to see if you have the same problem starting with the retry activity project from codeplex and a brand new workflow console application with no custom dependencies, in an otherwise empty solution.

    (The reason is that frequently activities fail to show in the toolbox due to issues loading the assembly, or a dependent assembly. If you're working with an existing project, it may be problems with some of your existing dependencies causing the issue.

    In case you're up for some debugging, while generally it's hard to diagnose these problems, if you debug VS with first chance exceptions turned on you can also sometimes see the assembly loading exception that indicates the problem.)

    Tim

  • Saturday, August 11, 2012 4:04 AM
     
     

    Thanks!  I will try with the brand new workflow console application.

    Emily


    Emily