title: Is there a way to increase the timeout value for Dynamics CRM server invocation?
body: <p>I am write a simple application to test the Linq query functionality provided by CRMSDK. </p>
  
  <p>My code is simple enough. </p>
  
  <pre><code>     var before = DateTime.Now;
       var crm = new Stub.Xrm.MyDataContext("MyCRM");
       var contact = crm.contacts.FirstOrDefault();
       var span = new TimeSpan(DateTime.Now.Ticks-before.Ticks);
       Console.WriteLine("The name is " + contact.name);
       Console.WriteLine("It took " + span.Seconds + " seconds to run this program " );
  </code></pre>
  
  <p>It took about one minute to run but it worked.
  Then I try to query different entity such as account, I got the </p>
  
  <pre><code>Unhandled Exception: System.Net.WebException: The operation has timed out
  </code></pre>
  
  <p>I am suspecting this happens because I had more accounts then contacts, so it took longer to process account query. I am trying to increase the timeout value at my app.config by  but didn't work. </p>