Solved

wcf multithreading

Posted on 2010-09-02
4
724 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
  • 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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

Suggested Solutions

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
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

679 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