Click here to Skip to main content
11,804,919 members (67,050 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: WCF
Hi All,
I have a wcf service for which we have given the "send timeout" as 200ms but when we are calling the method of that service,the following error is
"has exceeded the allotted timeout of 00:00:00.1680000. The time
allotted to this operation may have been a portion of a longer timeout. The operation has timed out"

Here the alloted timeout is showing as "168ms" while we have mentioned the send timeout as 200ms in the configuration.

The bindingconfigutation is as follows:

<binding name="TestBinding" maxReceivedMessageSize="2147483647" closeTimeout="00:00:00.200" maxBufferPoolSize="2147483647" messageEncoding="Text" textEncoding="utf-8" openTimeout="00:00:00.200" receiveTimeout="00:00:00.200" sendTimeout="00:00:00.200" >
          <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
          <security mode="Transport">
            <transport clientCredentialType="Certificate" />

Not sure why the service is timing out before specified timeout. Any help would be appreciated.

Thanks in advance,
Posted 22-Feb-13 2:46am
Tharaka MTR at 23-Feb-13 3:06am
could you please share the complete configuration file?

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

I used receivetimeout property and it worked.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 3,205
1 Maciej Los 1,950
2 KrunalRohit 1,907
3 CPallini 1,855
4 Richard MacCutchan 1,187

Advertise | Privacy | Mobile
Web01 | 2.8.151002.1 | Last Updated 17 Oct 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100