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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T06:37:33+00:00 2026-05-20T06:37:33+00:00

I call a WCF service from multiple threads at the same time, but the

  • 0

I call a WCF service from multiple threads at the same time, but the response comes empty. If i have like 10 threads working in parallel calling the service, only 1 returs the data, the rest of them return all properties with null value. The service is consumed by another project in the same solution in VS. The service refference is obtained by discovery(so the service is not hosted in IIS).

Why do you think I get this behaviour?
If I only allow one thread at a time with:

 myList.AsParallel().WithDegreeOfParallelism(1).ForAll(x => Worker(x));

all is fine, but I need at least 5 to speed things up. Worker method calls the WCF service.

 public void Worker(object cui)
    {

        MyData mf = null;
        mf = (new AnalyseService.AnalyseServiceClient()).GetDataFromWCFService((string)cui, true);
    }

On the server the response is always correct, but when it reaches the client it may have it’s properties equl null

  • 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-20T06:37:33+00:00Added an answer on May 20, 2026 at 6:37 am

    It turned out that VS was having some problems with this.

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

Sidebar

Related Questions

I have a WCF service that I call from a windows service. The WCF
I have a WCF service (the same one) running on multiple servers, and I'd
I have a simple WCF service that I call server side from code behind
We have a requirement to call a WCF service from another WCF Service. To
I have a Silverlight application in which I would like to call a WCF
My requirement is to call WCF web service from ASP.NET code behind and pass
I have a WCF service. How can i know if the call to my
Hello I have a simple wcf service like this, with a test method which
A Silverlight 3.0 application tries to call WCF service but the application can not
I have WCF service which launches the remote process from Process.Start successfully on stand

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.