【问题标题】:Error The message with To '' cannot be processed at the receiver, due to an AddressFilter mismatch at the EndpointDispatcher错误由于 EndpointDispatcher 的 AddressFilter 不匹配,无法在接收方处理带有 To '' 的消息
【发布时间】:2018-08-07 11:40:24
【问题描述】:

我阅读了问题:

但是这些还没有解决我的问题。

我有一个 Web 服务:Service1 和应用程序 App1,它通过端口 8089 连接到 Service1

App1的配置

<system.serviceModel>
        <bindings>
          <wsHttpBinding>
            <binding name="WSHttpBinding_IService1" maxBufferPoolSize="327680" maxReceivedMessageSize="104857600" sendTimeout="00:01:30">
              <security mode="Transport" />
              <readerQuotas maxArrayLength="327680" maxBytesPerRead="327680" maxDepth="327680" maxNameTableCharCount="327680" maxStringContentLength="104857600" />
            </binding>
          </wsHttpBinding>
        </bindings>
        <client>

          <endpoint address="http://localhost:8089/" binding="wsHttpBinding"
                    bindingConfiguration="WSHttpBinding_IService1" contract="Service1Client.IService1"
                    name="WSHttpBinding_IService1">
            <identity>
              <dns value="localhost" />
            </identity>
          </endpoint>
        </client>
    </system.serviceModel>

Service1的配置:

<system.serviceModel>
    <bindings>
      <wsHttpBinding>
        <binding maxBufferPoolSize="327680" maxReceivedMessageSize="104857600">
          <security mode="None"/>
          <readerQuotas maxArrayLength="327680" maxBytesPerRead="327680" maxDepth="327680" maxNameTableCharCount="327680" maxStringContentLength="104857600"/>
        </binding>
      </wsHttpBinding>
    </bindings>
    <services>
      <service name="Service1.Service1">
        <endpoint address="" binding="wsHttpBinding" contract="Service1.Contract.IService1">
          <identity>
            <dns value="localhost"/>
          </identity>
        </endpoint>
        <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
        <host>
          <baseAddresses>
            <add baseAddress="http://localhost:8089/"/>
          </baseAddresses>
        </host>
      </service>
    </services>
    <behaviors>
      <serviceBehaviors>
        <behavior>
          <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true"/>
          <serviceDebug includeExceptionDetailInFaults="False"/>
          <serviceThrottling maxConcurrentCalls="200"/>
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" minFreeMemoryPercentageToActivateService="0"/>
</system.serviceModel>

我收到错误:

带有“http://localhost:8089/”的邮件无法在 接收方,由于 AddressFilter 不匹配 端点调度程序。检查发送方和接收方的 EndpointAddresses 同意

【问题讨论】:

    标签: c# wcf


    【解决方案1】:

    确保您的合同参考与服务器版本相同。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-01-02
      • 2016-09-25
      • 1970-01-01
      • 1970-01-01
      • 2012-03-06
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多