title: Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding.Sharepoint WCF
body: <p>Web service working more than 2 years and now its not working 
  This is a bank's web site so i cant reach server. i develop and sending code with mail </p>
  
  <p>GetCurrencyDataFromService ()</p>
  
  <pre><code> #region Set up security binding and service endpoint
              BasicHttpBinding binding = new BasicHttpBinding(BasicHttpSecurityMode.Transport);
              binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Ntlm;
              binding.Security.Transport.ProxyCredentialType = HttpProxyCredentialType.Ntlm;
              EndpointAddress endpoint = new EndpointAddress(GetValue("ServiceUrl"));//"https://webtest.blabla.com.tr/WebCreditWebServices");
              #endregion
  
  
              HEADER header = new HEADER();
              header.SESSION_ID = GetSessionID(binding, endpoint, clientSessionId);
  
  
              WebCreditWebServices_PortTypeClient client = new WebCreditWebServices_PortTypeClient(binding, endpoint);
  
              string CORE_TRX_ID_RESERVED = "";
              string RETURN_CODE = "";
              string RETURN_DESC = "";
  
              //  System.Console.WriteLine("result");
              return client.WEBEXT_ADCBI_FOREIGN_EXCHANGE_VALID_EXCHANGE_RATE(header, clientSessionId, Guid.NewGuid().ToString(), out CORE_TRX_ID_RESERVED, out RETURN_CODE, out RETURN_DESC);
  </code></pre>
  
  <p>appconfig</p>
  
  <pre><code>&lt;system.serviceModel&gt;
      &lt;bindings&gt;
        &lt;basicHttpBinding&gt;
          &lt;binding name="WebCreditWebServices_PortBinding"&gt;
            &lt;security mode="Transport" /&gt;
          &lt;/binding&gt;
          &lt;binding name="WebCreditWebServices_PortBinding1" /&gt;
        &lt;/basicHttpBinding&gt;
      &lt;/bindings&gt;
      &lt;client&gt;
        &lt;endpoint address="https://webtest.blabla.com.tr/WebCreditWebServices"
          binding="basicHttpBinding" bindingConfiguration="WebCreditWebServices_PortBinding"
          contract="WebCreditWebServices.WebCreditWebServices_PortType"
          name="WebCreditWebServices_Port" /&gt;
      &lt;/client&gt;
    &lt;/system.serviceModel&gt;
  </code></pre>
  
  <p>And this is error</p>
  
  <pre><code>  The request channel timed out while waiting for a reply after 00:00:59.9843762. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a longer timeout. Stack Trace: 
  Server stack trace: 
     at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
     at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
     at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)Exception rethrown at [0]: 
     at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
     at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&amp; msgData, Int32 type)
     at blabla.Service.WebCreditWebServices.WebCreditWebServices_PortType.WEBEXT_ADCBI_FOREIGN_EXCHANGE_VALID_EXCHANGE_RATE(WEBEXT_ADCBI_FOREIGN_EXCHANGE_VALID_EXCHANGE_RATERequest request)
     at Service.WebCreditWebServices.WebCreditWebServices_PortTypeClient.Web.Service.WebCreditWebServices.WebCreditWebServices_PortType.WEBEXT_ADCBI_FOREIGN_EXCHANGE_VALID_EXCHANGE_RATE(WEBEXT_ADCBI_FOREIGN_EXCHANGE_VALID_EXCHANGE_RATERequest request)
     at Service.WebCreditWebServices.WebCreditWebServices_PortTypeClient.WEBEXT_ADCBI_FOREIGN_EXCHANGE_VALID_EXCHANGE_RATE(HEADER HEADER, String CLIENT_SESSION_ID, String CLIENT_TRX_ID_RESERVED, String&amp; CORE_TRX_ID_RESERVED, String&amp; RETURN_CODE, String&amp; RETURN_DESC)
     at Matriks.Console.Program.GetCurrencyDataFromService()
  </code></pre>