Solved

wcf multithreading

Posted on 2010-09-02
4
728 Views
Last Modified: 2013-11-27
Hello,

I am writing a WCF File Server(framework 3.5). Currently it is working for one client.But  I want multiple clients to upload files to my server simultaneously.
How can i do that ?

thanks.
0
Comment
Question by:parabellum
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 22

Expert Comment

by:p_davis
ID: 33590182
that's what the client to service relation is for in wcf

you need to make a service contract with a method that accepts calls from clients.

what do you have so far? what is the issue that you are experiencing?
0
 

Author Comment

by:parabellum
ID: 33590499

Currently my service behavior is:
InstanceContextMode.Single,
         ConcurrencyMode = ConcurrencyMode.Multiple

In this setting, while one client is uploading, the others are having problems. It seems like only one client
can upload file at a time.
0
 
LVL 22

Accepted Solution

by:
p_davis earned 500 total points
ID: 33590717
ours is a winforms solution but we use

the same concurrency mode but use InstanceContextMode.PerSession

on the client we use the same concurrency mode

concurrency mode
http://msdn.microsoft.com/en-us/library/system.servicemodel.concurrencymode.aspx


what exactly are the problems that you are seeing/they are reporting
0
 

Author Comment

by:parabellum
ID: 33591065

Well the problem is; only one client is able to upload file. The others must wait  each other. But i want
say 5  clients upload at the same time.
I will change  InstanceContextMode to  InstanceContextMode.PerSession.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question