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 8846267
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:56:23+00:00 2026-06-14T11:56:23+00:00

I have a load tester that calls my WCF service and I’ve built it

  • 0

I have a load tester that calls my WCF service and I’ve built it with options to run the calls in parallel or not. Only when running in parallel, I get the following error for all threads: “The server did not provide a meaningful reply; this might be caused by a contract mismatch, a premature session shutdown or an internal server error.”

This is more or less my code:

            if (runMultiThreaded)
            {
                ParallelOptions options = new ParallelOptions();
                options.MaxDegreeOfParallelism = System.Environment.ProcessorCount;
                ParallelLoopResult loopResult = Parallel.For(0, numberOfTimesToTest, options,
                    (i, loopState) =>
                    {
                        myService.MyOperation();
                        if (loopState.ShouldExitCurrentIteration) return;
                    });
            }
            else
            {
                for (int i = 0; i < test1NumberOfRuns; i++)
                {
                        myService.MyOperation();
                }
            }

Any ideas? Let me know if you need more details.

UPDATE: myService is an instance of my service’s operation contract interface that was created with a ChannelFactory using the CreateChannel method.

Thanks!

  • 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-06-14T11:56:24+00:00Added an answer on June 14, 2026 at 11:56 am

    I’m assuming your myService is a ClientBase<T> subclass or a channel created explicitly via ChannelFactory<T>::CreateChannel? If so those instances are not guaranteed to be thread safe and you so you need an instance per worker thread.

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

Sidebar

Related Questions

We have a load test that runs of 100 concurrent users. We also have
I have a load once jqgrid that uses a custom formatter to display checkboxes
I have to load a kmz file in to the android application that i
I have to load huge (3000x3000) pictures in SWFLoader, and no problems with that
The only problem i have is, that i want to reload some images in
I have a site that calls AJAX. It works at my office, where I
Here's my dilemma. I have 2 animations that need to run sequentially. The first
I am running 2008 R2 I have an entire set of reports that I
I work as a tester for an organisation that has a web service as
I have a view that calls on four different partial views (.ascx) to populate

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.