我們WCF大請求返回下面的錯誤服務:WCF的大請求返回404,maxReceivedMessageSize =「2147483647」
「System.ServiceModel.EndpointNotFoundException:沒有終點的http://xxx.svc是可以接受的消息聽。 ---> System.Net.WebException:遠程服務器返回一個錯誤:(404)Not Found。
對於小的請求一切正常,我得到正確的WCF服務響應,這個問題只是與大的請求。
在客戶機上設置如下:
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_ITestService" openTimeout="00:05:00" sendTimeout="00:05:00" maxBufferPoolSize="524288" maxReceivedMessageSize="2147483647" >
<readerQuotas maxDepth="2147483647" maxBytesPerRead="2147483647" maxArrayLength="2147483647" maxStringContentLength="2147483647"
maxNameTableCharCount="2147483647"/>
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost:33333/TestService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_ITestService" contract="TestService.ITestService" name="BasicHttpBinding_ITestService" />
</client>
</system.serviceModel>
WCF服務的設置:
<bindings>
<basicHttpBinding>
<binding maxReceivedMessageSize="2147483647" receiveTimeout="00:10:00" sendTimeout="00:10:00" maxBufferSize="2147483647" maxBufferPoolSize="2147483647">
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483646" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
</binding>
</basicHttpBinding>
</bindings>
什麼可以是問題?
可能重複:http://stackoverflow.com/questions/17572500/wcf-error-there-was-no-endpoint-listening-at – Mike 2015-02-24 18:09:01
我有上述問題提供的設置。 – DamianPawski 2015-02-25 11:43:05