【问题标题】:Exception when endpoint is configured in web.config file在 web.config 文件中配置端点时的异常
【发布时间】:2012-04-17 05:04:43
【问题描述】:

我正在使用 wf wcf 服务,并在 web.config 文件中为其控制端点添加了配置。 当我通过工作流控制客户端调用终止方法时,它的 Thro 异常,例如“由于 EndpointDispatcher 的 AddressFilter 不匹配,无法在接收方处理带有 To 的消息。检查发送方和接收方的 EndpointAddresses 是否一致。”。 像这样控制端点配置。

在服务端-

<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>

如果您能帮助我找到解决方案,我将不胜感激。 当我使用工作流服务主机并在代码中添加控制端点时,它工作正常。

【问题讨论】:

    标签: wcf workflow-foundation


    【解决方案1】:

    尝试为 ServiceBehavior 设置 AddressFilterMode。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-06-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-05-29
      相关资源
      最近更新 更多