私はwf wcfサービスを使用しており、web.configファイルにその制御エンドポイント用に構成を追加しました。ワークフロー制御クライアントを介して終了メソッドを呼び出すと、「EndpointDispatcher での AddressFilter の不一致により、To を含むメッセージを受信者で処理できません。送信者と受信者の EndpointAddress が一致していることを確認してください。」のような例外が発生します。このようにエンドポイントの構成を制御します。
サービス側で
<services>
<service name="PurchaseOrder">
<endpoint address=""
binding="basicHttpBinding" contract="POWorkflowService.IPurchaseOrder" />
<endpoint address="wce"
binding="basicHttpBinding" kind="workflowControlEndpoint" />
</service>
</services>
<standardEndpoints>
<workflowControlEndpoint>
<standardEndpoint/>
</workflowControlEndpoint>
</standardEndpoints>
クライアント側の構成は -
<client>
<endpoint address="http://localhost:3650/POService.xamlx/wce" binding="basicHttpBinding"
bindingConfiguration="BasicHttpBinding_IPurchaseOrderIIS" contract="System.ServiceModel.Activities.IWorkflowInstanceManagement"
name="IPurchaseOrderControlEndpointISS" />
</client>
解決策を見つけるのを手伝っていただければ幸いです。ワークフローサービスホストを使用してコードにコントロールエンドポイントを追加すると、正常に動作します。