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

  • SEARCH
  • Home
  • 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 3938634
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T00:12:25+00:00 2026-05-20T00:12:25+00:00

I have a simple WCF service hosted in a windows service. The service itself

  • 0

I have a simple WCF service hosted in a windows service. The service itself does nothing but simulating a long transaction that takes 10 seconds to complete. I also have code in the service to log entries to my database so I know it’s being invoked, operation completed,…etc. Here’s the summary of service configurations:

  1. Binding: NetTcpBinding
  2. SessionMode: Allowed (doesn’t really matter)
  3. IsOneWay: true
  4. InstanceContextMode: single
  5. ConcurrencyMode: single

Then I have my test client to call the service method 4 times in a row. What I expect to see in the log is that everything is being executed sequentially and multiple calls are queued up and served when the service is done with the previous call.

However, I can see only the 1st call being logged and the rest are dropped. If I put a 15 seconds gap in between each call then every one will be served and logged. I’ve messed around with all kinds of settings (inactivityTimeout, listenBackLog,…etc.) but nothing helped.

What am I missing here?

  • 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. Editorial Team
    Editorial Team
    2026-05-20T00:12:26+00:00Added an answer on May 20, 2026 at 12:12 am
    • InstanceContextMode: single creates a singleton – there’s only ever gonna be a single instance of your service class capable of servicing requests.

    • ConcurrencyMode: single means: that singleton service class can only handle a single request at a time, e.g. it will sequentially handle incoming requests

    By using these two settings, you’ve created yourself a nice bottleneck…. yes, requests will be served sequentially, one by one. So obviously, at some point, the second and subsequent request must run into something like a timeout or something and get dropped. Those timeouts normally are set to 1 minute, so a 10 second transaction shouldn’t really cause any grief….

    It really depends on how you do these calls, and since you provided no code at all, I can only guess. Are you using a single WCF client-side proxy? Or do you really have four separate app instances, each sending out a request?

    Are you getting any error or faults on the client side where you send out the requests?? If so: what kind of errors? Does your client code cause a session to start?

    Just out of curiosity: is this just a thought experiment, or is there any specific reason why you want to arbitrarily create such a bottleneck in your system?? The recommended best practice would be to have InstanceContextMode=PerCall, and that would solve all those issues, I’m pretty sure: all four requests would get their own copy of the service class and they should be handled concurrently, just fine.

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

Sidebar

Related Questions

I have simple WCF service hosted on Windows Service. When the client of wcf
I have created a very simple WCF service, hosted on windows service, closely following
I have a simple WCF service hosted in IIS7 using the HTTP protocol. The
I have a simple WCF Web service. It's hosted on IIS under the default
I have a WCF service hosted in IIS6. It is doing simple WebRequest. When
We have a simple WCF service that is tagged with InstanceContextMode = Single and
I have a very simple WCF service running that has a single method that
I have written a simple WCF service that accepts and stores messages. It works
I have written a very simple WCF service, that worked fine (code below), then
i have a simple xml file in a wcf service that i am trying

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.