Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

[CrmClientService] System.TimeoutException: The request channel timed out while waiting for a reply after 00:14:59.9969996

$
0
0

Hi there,

I am using CrmClientService to connect to Dynamics 365 to retrieve data.

But I always encountered this kind of error. the stack message is

System.TimeoutException: The request channel timed out while waiting for a reply after 00:14:59.9969996. 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. ---> System.TimeoutException: The HTTP request to 'xxxx.crm6.dynamics.com/.../web has exceeded the allotted timeout of 00:14:59.9990000. The time allotted to this operation may have been a portion of a longer timeout. ---> System.Net.WebException: The operation has timed out
at System.Net.HttpWebRequest.GetResponse()
at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
--- End of inner exception stack trace ---
at System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)
at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)

I try to set the timeout value to 30 mins like below (the value is timespan of 30 minutes), but not working. the error still said timout due to 15 mins exceeds

if (InternalCrmServiceClient.OrganizationServiceProxy != null)
{
    InternalCrmServiceClient.OrganizationServiceProxy.Timeout = value;
}
if (InternalCrmServiceClient.OrganizationWebProxyClient != null&& InternalCrmServiceClient.OrganizationWebProxyClient.Endpoint != null&& InternalCrmServiceClient.OrganizationWebProxyClient.Endpoint.Binding != null)
{
    InternalCrmServiceClient.OrganizationWebProxyClient.Endpoint.Binding.SendTimeout = value;
}
CrmServiceClient.MaxConnectionTimeout = value;

Please note, here 'InternalCrmServiceClient' is actually a instance of CrmServiceClient

Any suggestions?


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images