
Untitled
By: a guest on
Jun 16th, 2012 | syntax:
None | size: 0.49 KB | hits: 11 | expires: Never
Is there a way to increase the timeout value for Dynamics CRM server invocation?
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 " );
Unhandled Exception: System.Net.WebException: The operation has timed out