Service Timeout


If you are importing really large customization file you may get a timeout error in order to allow for larger imports you can adjust the default timeout on the OrganizationalServiceProxy in the ConnectionManage.cs file.
// Connecting to Crm server
            this.SetCursor(this.innerAppForm, Cursors.WaitCursor);
            this.SendStepChange("Creating Organization service proxy...");
            OrganizationServiceProxy orgProxy = new OrganizationServiceProxy(uri, null, clientCredential, deviceCredential);

            //By Adding the timespan below I have increased the default to 10 hours
            orgProxy.Timeout = new TimeSpan(10, 0, 0);

            IOrganizationService service = (IOrganizationService)orgProxy;
            this.SendSuccessMessage(service, parameters);
        catch (Exception error)
            this.SendFailureMessage(CrmExceptionHelper.GetErrorMessage(error, false));
Closed Nov 23, 2011 at 4:53 PM by tanguy92


wrote Nov 23, 2011 at 4:53 PM

Résolu avec l'ensemble de modifications 9022.

wrote Feb 14, 2013 at 2:10 AM

wrote May 16, 2013 at 5:03 AM