The input objects cannot be serialized. This might prevent the workflow from being resumed correctly. The serialization error ...

The input objects cannot be serialized. This might prevent the workflow from being resumed correctly. The serialization error  might indicate a problem with the data contract that is defined at the type/attribute level. To resolve the problem, verify that the values of all variables and parameters can be serialized. Serialization error is: {0}.