Link to home
Start Free TrialLog in
Avatar of Lawrence Avery
Lawrence AveryFlag for United States of America

asked on

AlReadyInUseException

I am confused on the AlreadyInUseException. We have several applications on a website using port 80 and that works.
How does a AlreadyInUseException happen? Is it only with WCF service application?
Avatar of sammySeltzer
sammySeltzer
Flag of United States of America image

Hi,

Are you using framework 4.5?

If so, as I understand it, default NetTcpBinding settings for framework 4.0  when using listenBackLog and MaxConnections were 10* ProcessorCount.

However, in 4.5, these defaults were revised as 12.

So  in 4.5, the defaults were still being computed as 10* processCount as opposed to 12*processCount.

To correct this, you will have to go to your config file and remove listenBackLog and MaxConnections settings.

This forces it to compute at the correct number which is 12 and should fix the problem.
Avatar of Lawrence Avery

ASKER

I am using .NET 4.0.
ASKER CERTIFIED SOLUTION
Avatar of Lawrence Avery
Lawrence Avery
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
After reading articles on http headers

Host headers

https://technet.microsoft.com/en-us/library/cc753195(v=ws.10).aspx

This is what I was looking for.