title: WCF Service , how to increase the timeout?
body: <p>Might seem like a silly question, but everything in WCF seems a lot more complicated than in asmx, how can I increase the timeout of an svc service?</p>
  
  <p>Here is what I have so far:</p>
  
  <pre><code>&lt;bindings&gt;
        &lt;basicHttpBinding&gt;
          &lt;binding name="IncreasedTimeout" 
            openTimeout="12:00:00" 
            receiveTimeout="12:00:00" closeTimeout="12:00:00"
            sendTimeout="12:00:00"&gt;
          &lt;/binding&gt;
        &lt;/basicHttpBinding&gt;
  &lt;/bindings&gt;
  </code></pre>
  
  <p>And then my endpoint gets mapped like this:</p>
  
  <pre><code>&lt;endpoint address="" 
    binding="basicHttpBinding" bindingConfiguration="IncreasedTimeout"
               contract="ServiceLibrary.IDownloads"&gt;
               &lt;identity&gt;
                  &lt;dns value="localhost" /&gt;
               &lt;/identity&gt;
            &lt;/endpoint&gt;
  </code></pre>
  
  <p>The exact error I am getting:</p>
  
  <p>The request channel timed out while waiting for a reply after 00:00:59.9990000. 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.</p>
  
  <p>In the WCF Test Client, there is a config icon that contains the run time configuration of my service:</p>
  
  <p>As you can see its not the same values as I've set for it? What am I doing wrong?</p>
  
  <pre><code>&lt;bindings&gt;
              &lt;basicHttpBinding&gt;
                  &lt;binding name="BasicHttpBinding_IDownloads" closeTimeout="00:01:00"
                      openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
                      allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
                      maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
                      messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
                      useDefaultWebProxy="true"&gt;
                      &lt;readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                          maxBytesPerRead="4096" maxNameTableCharCount="16384" /&gt;
                      &lt;security mode="None"&gt;
                          &lt;transport clientCredentialType="None" proxyCredentialType="None"
                              realm=""&gt;
                              &lt;extendedProtectionPolicy policyEnforcement="Never" /&gt;
                          &lt;/transport&gt;
                          &lt;message clientCredentialType="UserName" algorithmSuite="Default" /&gt;
                      &lt;/security&gt;
                  &lt;/binding&gt;
              &lt;/basicHttpBinding&gt;
          &lt;/bindings&gt;
  </code></pre>