How do I fix this Connection Socket problem in WCF?
Posted on 2009-04-17
We have an ASP.NET site hosted on IIS6, talking to a WCF service hosted as a Windows Service. This is over a nettcpbinding.
This generally works very nicely, but I noticed today if a few of us attempt connections, or I raise many page requests myself in quick succession it all stops and begins to time out. Once everything has finished timing out it's good to go again.
I have set
[ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Multiple, InstanceContextMode = InstanceContextMode.PerCall)]
above my IWcfService interface to avoid concurrency problems, but it's made no difference.
I have zipped and attached our WCF trace log where you can see it runs smoothly, then dies, and repeats this. I had to rename the file from WcfTrace.svclog to WcfTrace.svclog.txt to upload it so please change the extension back.