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