[System.ServiceModel.CommunicationObjectFaultedException]
The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state.
Server stack trace:
at System.ServiceModel.Channels.CommunicationObject.ThrowIfDisposedOrNotOpen()
at System.ServiceModel.Channels.ServiceChannel.EnsureOpened(TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Jhu.Graywulf.Tasks.ICancelableTask.Cancel()
at Jhu.Graywulf.Tasks.CancelableCollection.Cancel() in C:\Data\dobos\project\skyquery-all-v1.3\graywulf\dll\Jhu.Graywulf.RemoteService\Tasks\CancelableCollection.cs:line 86
at Jhu.Graywulf.Activities.JobAsyncCodeActivity.Cancel(AsyncCodeActivityContext activityContext) in C:\Data\dobos\project\skyquery-all-v1.3\graywulf\dll\Jhu.Graywulf.Activities\Activities\JobAsyncCodeActivity.cs:line 132
at System.Activities.AsyncCodeActivity.InternalCancel(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.AsyncCodeActivity.InternalAbort(ActivityInstance instance, ActivityExecutor executor, Exception terminationReason)
at System.Activities.ActivityInstance.Abort(ActivityExecutor executor, BookmarkManager bookmarkManager, Exception terminationReason, Boolean isTerminate)
at System.Activities.Runtime.ActivityExecutor.Abort(Exception terminationException, Boolean isTerminate)
at System.Activities.Runtime.ActivityExecutor.Abort(Exception reason)
at System.Activities.Hosting.WorkflowInstance.WorkflowInstanceControl.Abort(Exception reason)
at System.Activities.WorkflowApplication.OnAbortWaitComplete(Object state, TimeoutException exception)
at System.Activities.WorkflowApplication.OnWaitAsyncComplete(Object state, TimeoutException exception)
at System.Runtime.AsyncWaitHandle.AsyncWaiter.Invoke()
at System.Runtime.ActionItem.CallbackHelper.InvokeWithoutContext(Object state)
at System.Runtime.IOThreadScheduler.ScheduledOverlapped.IOCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped nativeOverlapped)
at System.Runtime.Fx.IOCompletionThunk.UnhandledExceptionFrame(UInt32 error, UInt32 bytesRead, NativeOverlapped nativeOverlapped)
at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
When an exception is thrown the server side and the communication channel appears to get into the faulted state. Figure out what do and implement unit test.
[System.ServiceModel.CommunicationObjectFaultedException] The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state.
Server stack trace: at System.ServiceModel.Channels.CommunicationObject.ThrowIfDisposedOrNotOpen() at System.ServiceModel.Channels.ServiceChannel.EnsureOpened(TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation) at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at Jhu.Graywulf.Tasks.ICancelableTask.Cancel() at Jhu.Graywulf.Tasks.CancelableCollection.Cancel() in C:\Data\dobos\project\skyquery-all-v1.3\graywulf\dll\Jhu.Graywulf.RemoteService\Tasks\CancelableCollection.cs:line 86 at Jhu.Graywulf.Activities.JobAsyncCodeActivity.Cancel(AsyncCodeActivityContext activityContext) in C:\Data\dobos\project\skyquery-all-v1.3\graywulf\dll\Jhu.Graywulf.Activities\Activities\JobAsyncCodeActivity.cs:line 132 at System.Activities.AsyncCodeActivity.InternalCancel(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.AsyncCodeActivity.InternalAbort(ActivityInstance instance, ActivityExecutor executor, Exception terminationReason) at System.Activities.ActivityInstance.Abort(ActivityExecutor executor, BookmarkManager bookmarkManager, Exception terminationReason, Boolean isTerminate) at System.Activities.Runtime.ActivityExecutor.Abort(Exception terminationException, Boolean isTerminate) at System.Activities.Runtime.ActivityExecutor.Abort(Exception reason) at System.Activities.Hosting.WorkflowInstance.WorkflowInstanceControl.Abort(Exception reason) at System.Activities.WorkflowApplication.OnAbortWaitComplete(Object state, TimeoutException exception) at System.Activities.WorkflowApplication.OnWaitAsyncComplete(Object state, TimeoutException exception) at System.Runtime.AsyncWaitHandle.AsyncWaiter.Invoke() at System.Runtime.ActionItem.CallbackHelper.InvokeWithoutContext(Object state) at System.Runtime.IOThreadScheduler.ScheduledOverlapped.IOCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped nativeOverlapped) at System.Runtime.Fx.IOCompletionThunk.UnhandledExceptionFrame(UInt32 error, UInt32 bytesRead, NativeOverlapped nativeOverlapped) at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)