Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 16th, 2012  |  syntax: None  |  size: 0.49 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Is there a way to increase the timeout value for Dynamics CRM server invocation?
  2. var before = DateTime.Now;
  3.      var crm = new Stub.Xrm.MyDataContext("MyCRM");
  4.      var contact = crm.contacts.FirstOrDefault();
  5.      var span = new TimeSpan(DateTime.Now.Ticks-before.Ticks);
  6.      Console.WriteLine("The name is " + contact.name);
  7.      Console.WriteLine("It took " + span.Seconds + " seconds to run this program " );
  8.        
  9. Unhandled Exception: System.Net.WebException: The operation has timed out