Hi everyone!
I am having an issue using the ResumeAfterDelay Activity.
I get the following error message:
Message: Type 'System.__ComObject' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.
Exception Type: System.Runtime.Serialization.InvalidDataContractException
RemoteException wrapping System.Runtime.Serialization.InvalidDataContractException: Type 'System.__ComObject' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.
at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)
at System.Activities.WorkflowApplication.IdleEventHandler.OnStage2Complete(IAsyncResult lastResult, WorkflowApplication instance, Boolean isStillSync)
at System.Activities.WorkflowApplication.EventFrame(IAsyncResult result)
I do not get this error message if i run the activity by itself, only when it is part of the rest of the workflow. However, the error happens in the middle of the activity (I checked with a console log before and after the ResumeAfterDelay and it never gets to after the ResumeAfterDelay). So I’m not sure what would be different and causing the issue.
I have never encountered this issue before so I’m not sure how to go about debugging it.
Thanks in advance!