簡體   English   中英

錯誤由於EndpointDispatcher的AddressFilter不匹配,帶有To''的消息無法在接收方處理

[英]Error The message with To '' cannot be processed at the receiver, due to an AddressFilter mismatch at the EndpointDispatcher

我讀了以下問題:

但是那些還不能解決我的問題。

我有一個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>

我收到錯誤消息:

由於EndpointDispatcher上的AddressFilter不匹配,因此無法在接收方處理帶有To'http :// localhost:8089 / '的消息。 檢查發送方和接收方的EndpointAddresses是否一致

確保您的合同參考與服務器版本相同。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM