views:

207

answers:

1

Hi

I have build a silverlight application for message service. my problem is silverlight application disconnect after 10 connection. But i want it unlimited or thousands. I have spent a lot of time on this problem. some point about my application as:

  1. I have build 3 prject like silverlight project, web project, wcf service project.
  2. Im using PollingDuplexHttpBinding in wcf.that configure with we.bconfig.
  3. In silverlight project i have add service refrence and create service object with pollingduplex binding.
  4. I have configure web.config of wcf service project like :

  5. I have test this project on iis6 server 2003 server but problem same.

please help me to sole this problem.

Thanks

A: 

The problem is the number of concurrent threads IIS can run (sounds like you have it configured to run 10 at the moment). You can increase that number through IIS configuration...but performance is going to suffer.

The problem is that Duplex Services hosted in IIS never release their threads...so every user connected to the service sucks up another IIS worker thread. Duplex performance has been discussed elsewhere, but the common tone is this:

IIS can not host scalable Duplex Services.

My suggestion would be to find another way to host those services (WCF outside IIS, Custom Web Server, etc.).

Good luck.

Justin Niessner
Hi Niessnervery nice. Thanks for your answer.Then please sugest me wich binding is best for this application, NetMsmqBinding, BasicHttpBinding ot other.Thanks