Click here to Skip to main content
13,146,014 members (41,327 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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 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
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.170915.1 | Last Updated 17 Oct 2013
Copyright © CodeProject, 1999-2017
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