locked
creating a custom composit activity (XAML) for WF 4 RRS feed

  • Question

  • I have created custom activities, a codeactivity (codeactivity.cs) and a composit activity(ex: activity1.xaml). I have compile the project succesfully and registered the DLL in GAC too.

    After adding this DLL to toolbox, I am able to drag and drop the codeactivity on the workflow surface however I am anble to drop the composit activity(i.e activity1.xaml) on the workflow. I am getting following error on droping the activity on WF. Let me know if I am missing anything.

    "Can not create an instance of Activty1.xaml" Exception has been thrown by ....

    I am using VS2012

    Thanks

    Friday, October 12, 2012 1:15 PM

Answers

  • As the message is trying to say something went wrong when trying to instantiate the activity type... one way you can probably find out what happened is attach a second instance of Visual Studio to the first and break on CLR exception thrown. (It may be an issue with resolving dependencies of the assembly you placed in GAC?)
    Tim

    • Marked as answer by LeoTang Monday, October 22, 2012 9:04 AM
    Tuesday, October 16, 2012 8:27 PM