Locked AppFabric - use WorkflowControlClient from a webservice

  • Monday, January 09, 2012 3:25 PM
     
     
    0

    I have created some code to manage workflow instances using the WorkflowControlClient object.
    This works without a problem (i can cancel, suspend and resume instances).

    When i move this code to a webservice (this service runs on the same server as the WCF services, i.e. xamlx files), i get the following error:

    Exception: System.Runtime.CallbackException

    Message: An exception was generated by the asynchrtonous call (translated; below: 'bij' means 'at').

    StackTrace: bij System.Runtime.AsyncResult.Complete(Boolean completedSynchronously)

    bij System.Runtime.AsyncResult.AsyncCompletionWrapperCallback(IAsyncResult result)

    bij System.Runtime.Fx.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)

    bij System.Runtime.AsyncResult.Complete(Boolean completedSynchronously)

    bij System.Runtime.AsyncResult.AsyncCompletionWrapperCallback(IAsyncResult result)

    bij System.Runtime.Fx.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)

    bij System.Runtime.AsyncResult.Complete(Boolean completedSynchronously)

    bij System.Runtime.AsyncResult.AsyncCompletionWrapperCallback(IAsyncResult result)

    bij System.Runtime.Fx.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)

    bij System.Runtime.AsyncResult.Complete(Boolean completedSynchronously)

    bij System.Runtime.AsyncResult.AsyncCompletionWrapperCallback(IAsyncResult result)

    bij System.Runtime.Fx.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)

    bij System.Runtime.AsyncResult.Complete(Boolean completedSynchronously)

    bij System.Runtime.AsyncResult.AsyncCompletionWrapperCallback(IAsyncResult result)

    bij System.Runtime.Fx.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)

    bij System.Runtime.AsyncResult.Complete(Boolean completedSynchronously)

    bij System.Runtime.AsyncResult.AsyncCompletionWrapperCallback(IAsyncResult result)

    bij System.Runtime.Fx.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)

    bij System.Data.Common.DbAsyncResult.AsyncCallback_Context(Object state)

    bij System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)

    bij System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

    bij System.Data.Common.DbAsyncResult.ExecuteCallback(Object asyncResult)

    bij System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)

    bij System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)

    bij System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()

    bij System.Threading.ThreadPoolWorkQueue.Dispatch()

    bij System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

    InnerException: System.Activities.ValidationException

    Message: LocationReferenceValue<BaseApprovalMailParameters> is not of type Parallel. You should check that in activity LocationReferenceValue<BaseApprovalMailParameters> Parallel is implemented. (translated)

    Note that the MV application that calls the webservice that uses the WorkflowControlClient, does that call synchronously.

    Can someone help me to understand how i can use the WorkflowControlClient in a webservice?


    Michael Bakker

All Replies

  • Tuesday, January 10, 2012 2:18 PM
     
     Answered

    The error message was indeed caused by a problem within a code activity of the workflow.
    It was the error message that i recieved that made me believe it had something to do with the code being moved to a webservice.

    Sorry...


    Michael Bakker