Hi All
I am using CRM Plugin.and set its
Event.Pipeline stage of execution to poststage and
step deployment to child pipeline.
.I have created a method below
public CrmService GetCrmProxyUsingEndpointUrlInChildPipeline(string endPointUrl, IPluginExecutionContext context)
{
CrmService childCrmService = new CrmService();
childCrmService.Url = endPointUrl;
childCrmService.PreAuthenticate = true;
childCrmService.Credentials = new System.Net.NetworkCredential("usr", "daffodil", "domainname");
childCrmService.CrmAuthenticationTokenValue = new CrmAuthenticationToken();
childCrmService.CrmAuthenticationTokenValue.AuthenticationType = AuthenticationType.AD;
childCrmService.CrmAuthenticationTokenValue.OrganizationName = context.OrganizationName;
childCrmService.CrmAuthenticationTokenValue.CallerId = context.UserId;
childCrmService.CorrelationTokenValue = new CorrelationToken(context.CorrelationId, context.Depth, context.CorrelationUpdatedTime);
return childCrmService;
}
but in the execute method below
public void Execute(IPluginExecutionContext context)
{
CrmService crmService = (CrmService)GetCrmProxyUsingEndpointUrlInChildPipeline("http://SHIPRA/MSCRMServices/2007/CrmService.asmx", context);
BusinessEntityCollection bec = crmService.RetrieveMultiple(qe);//qe is queryexpression
}
Its giving error "The operation has timed out"
Kindly provide me its resolution
Thanks
Shipra