I have a WCF web service on a server. When I try to call this service from another server, I get a timeout exception after 20 seconds despite of the web.config
settings.
Error Message:
The request channel timed out while waiting for a reply after 00:09:59.8593747.
When I try to call this service from localhost, it works without an exception.
Client web.config
:
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_IHostOlustur"
receiveTimeout="00:10:00" sendTimeout="00:10:00"
maxReceivedMessageSize="2147483647" />
</basicHttpBinding>
</bindings>
<client>
<endpoint name="BasicHttpBinding_IHostOlustur"
address="...."
binding="basicHttpBinding"
bindingConfiguration="BasicHttpBinding_IHostOlustur"
contract="Reseller.IHostOlustur" />
</client>
</system.serviceModel>
Service web.config
:
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="">
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="false"/>
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment aspNetCompatibilityEnabled="false"
multipleSiteBindingsEnabled="true"
minFreeMemoryPercentageToActivateService="1"/>
</system.serviceModel>
I think it's related to IIS settings.