locked
https://social.microsoft.com/Forums/en-US/8f153c90-8b3d-4f89-9788-7bd191e9c32e/where-do-i-down-the-latest-microsoft-dynamics-crm-2016-service-pack-1-or-later-sdk?forum=crm RRS feed

  • Question

  • I am getting the following The request channel timed out while waiting for a reply after 00:01:59.9346510. 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. When I try to call

    How do I increase the timeout value when I initiate the Organization service with the following piece of code

    private IOrganizationService GetOrganizationService()
            {
                    if(_organizationServiceIsReady == true)
                    {
                    return _organizationService;
                    }   
                    var client = new CrmServiceClient(this.CRMConnectionString);
                    
                    if(client.IsReady)
                    {
                      _organizationService = (IOrganizationService)client.OrganizationServiceProxy;
                    _organizationServiceIsReady = true;
                    return _organizationService;
                    }
                    else
                    {
                        throw new Exception("Unable to Connect to CRM");
                    }
            }

    foreach (ExecuteMultipleRequest requestCol in this.RequestCollectionList)
               {
                  
                   if (requestCol.Requests.Count > 0)
                   {
                       requestCol.Settings = new ExecuteMultipleSettings
                       {
                           ContinueOnError = true,
                           ReturnResponses = false
                       };
                       DoWork(_batchSize, "Batch.Client.Implementation.BulkExecute - Begin");
                       service.Execute(requestCol);
                       
                       DoWork(_batchSize, "Batch.Client.Implementation.BulkExecute - End");              
                   }
               }
    

    Monday, May 16, 2016 12:21 PM