1

Closed

Service Timeout

description

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.
 
Example:
 
// Connecting to Crm server
        try
        {
            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 3:53 PM by tanguy92

comments

wrote Nov 23, 2011 at 3:53 PM

Résolu avec l'ensemble de modifications 9022.

wrote Feb 14, 2013 at 1:10 AM

wrote May 16, 2013 at 4:03 AM