Click here to Skip to main content
15,867,453 members
Please Sign up or sign in to vote.
4.00/5 (1 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:

XML
<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" />
          </security>
        </binding>




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

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

1 solution

I used receivetimeout property and it worked.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900