Creating a Custom Activity error - exception has been thrown by the target of invocation. How to debug?

Jun 22, 2012 at 7:25 AM
Edited Jun 25, 2012 at 3:50 AM

Hello,

I want to create a custom activity that outputs an XML configuration file.  I've created the activity and set all the properties outlined in the programming guide. I have this code working in a C# project before attempting to create the Activity.

I deleted my program class Main() and copied that code into Execute method setting the program arguments according to the  RequiredInputParam, RequiredInOutParam names. 

The custom activity builds successfully although when i try to import it I get an error "exception has been thrown by the target of invocation".

I'm wondering if this has to do with the references my code requires System.Runtime.Serialization.   Even when I add this dll as a dependency same issue occurs.

Thanks.

Jun 25, 2012 at 3:19 AM

Hi,

Thanks for showing your interest in Trident.

We are working on this issue and will get back with the updates.

Regard
Trident Support Team

Jun 25, 2012 at 12:11 PM

Please check the .net version on which the dll was created. Thew .net framework should be 3.5 instead of 4.

Jun 26, 2012 at 6:35 AM
Edited Jun 26, 2012 at 11:37 PM

Thanks for your reply it solved the issue.