public void ApplyDispatchBehavior(OperationDescription operationDescription, System.ServiceModel.Dispatcher.DispatchOperation dispatchOperation) { // Replace the default invoker with our custom ErrorHandlingInvoker ErrorHandlingInvoker errInvoker = new ErrorHandlingInvoker(dispatchOperation.Invoker); dispatchOperation.Invoker = errInvoker; }