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

Question

Question

Custom Workflow Activity reporting error: PublicKeyToken=null' is not marked as serializable

asked on October 22, 2015

Hi, we are experiencing some strange behavior with one of our Custom Workflow Activities and looking for some guidance. What we find is that if the Custom Activity is places on Workflow that contains any of the following standard Workflow Activities; Find User, Find Group; Search Repository, then when the Workflow runs, the following error is reported:...

PublicKeyToken=null' is not marked as serializable

On workflows where the above mentioned activities are not present, and only our custom activity, then no errors are reported and the workflow runs normally performing each operation as expected. 

It is almost like there is some code in our custom activity that is not compatible with some of the standard workflow activities and at Run time, throws an exception. 

 

Any ideas what could cause this or where we can start looking in the code of our Custom Activity?

0 0

Replies

replied on October 23, 2015

The stack trace should give you more information about which property in your activity needs to be marked as serializable. You can find the full stack trace in the activity errors.log in WF's Admin console (Monitoring\Error logs).

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

Sign in to reply to this post.