Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 171113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T12:55:47+00:00 2026-05-11T12:55:47+00:00

I have a WCF Service and an application with a Service Reference to it,

  • 0

I have a WCF Service and an application with a Service Reference to it, and with the application I have a loop and in each iteration it’s making a call to a method in this wcf web-service.

The problem is that after about 9 calls or so, it just stops…and if you hit Pause button of VS, you will see that it’s stuck on the line where it makes the call.

After some time waiting for it, this TimeoutException is thrown:

The request channel timed out while waiting for a reply after 00:00:59.9970000. 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.


I researched a bit on this, and found some solutions that involved editing the app.config in the application, and here are excerpts of it:

<serviceBehaviors>     <behavior name='ThrottlingIssue'>         <serviceThrottling maxConcurrentCalls='500' maxConcurrentSessions='500' />     </behavior> </serviceBehaviors> 

.

<readerQuotas maxDepth='2147483647' maxStringContentLength='2147483647'   maxArrayLength='2147483647'   maxBytesPerRead='2147483647' maxNameTableCharCount='2147483647' />  

Then, after I stop debugging, after a couple of minutes, an error message pops up telling me that a Catastrophic failure has occurred.

How can I fix this problem? I did not have this issue when I was working with a normal Web Service.


For reference, here is the whole app.config:

<?xml version='1.0' encoding='utf-8' ?> <configuration>     <system.serviceModel>         <behaviors>             <serviceBehaviors>                 <behavior name='ThrottlingIssue'>                     <serviceThrottling maxConcurrentCalls='500' maxConcurrentSessions='500' />                 </behavior>             </serviceBehaviors>         </behaviors>         <bindings>             <wsHttpBinding>                 <binding name='WSHttpBinding_IDBInteractionGateway' closeTimeout='00:01:00'                     openTimeout='00:01:00' receiveTimeout='00:10:00' sendTimeout='00:01:00'                     bypassProxyOnLocal='false' transactionFlow='false' hostNameComparisonMode='StrongWildcard'                     maxBufferPoolSize='524288' maxReceivedMessageSize='65536'                     messageEncoding='Text' textEncoding='utf-8' useDefaultWebProxy='true'                     allowCookies='false'>                     <readerQuotas maxDepth='2147483647' maxStringContentLength='2147483647'                         maxArrayLength='2147483647' maxBytesPerRead='2147483647' maxNameTableCharCount='2147483647' />                     <reliableSession ordered='true' inactivityTimeout='00:10:00'                         enabled='false' />                     <security mode='Message'>                         <transport clientCredentialType='Windows' proxyCredentialType='None'                             realm='' />                         <message clientCredentialType='Windows' negotiateServiceCredential='true'                             algorithmSuite='Default' establishSecurityContext='true' />                     </security>                 </binding>             </wsHttpBinding>         </bindings>         <client>             <endpoint address='http://localhost:28918/DBInteractionGateway.svc'                 binding='wsHttpBinding' bindingConfiguration='WSHttpBinding_IDBInteractionGateway'                 contract='DBInteraction.IDBInteractionGateway' name='WSHttpBinding_IDBInteractionGateway'>                 <identity>                     <dns value='localhost' />                 </identity>             </endpoint>         </client>     </system.serviceModel> </configuration> 

[Update] Solution:

Apparently, after each request you have to Close the connection…I am now closing the connection after each request and it’s working like a charm.

Although what I still can’t understand is that in my app.config, I set my maxConcurrentCalls and maxConcurrentSessions to 500, and yet, I can only make 10. Anyone has any answer for that one? (maybe I have something wrong in my app.config posted above)

The answer for the above question (now dashed) is because I was editing the client app.config, not the service config file (web.config)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T12:55:48+00:00Added an answer on May 11, 2026 at 12:55 pm

    The default number of allowed concurrent connections is 10.
    Most likely your client is not closing the connections.

    To increase the number of concurrent calls, you will have to add your behavior to the service configuration, not the client.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a silverlight 2 beta 2 application that accesses a WCF web service.
I have A WCF service that has a class that inherits System.Web.Security.RoleProvider. In this
I have a WCF service that is hosted in a windows application. The service
I have client application that uses WCF service to insert some data to backend
I have a Silverlight 2 application that is consuming a WCF service. As such,
I have a WCF service that I have to reference from a .net 2.0
I have a WCF service that I need to call. When I go through
I have a WCF service that is called by a Windows Mobile application running
I have created a WCF Data Service and using it in a web application
I have created a WCF service, now this WCF service has to call a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.