I am load testing my website. The site calls to a WCF service running on the same box using clientCredentialType="Windows". Everything works until I reach a certain load (which is not even very high), then I get the following error:
System.ServiceModel.Security.MessageSecurityException: The HTTP request was forbidden with client authentication scheme 'Anonymous'. ----> System.Net.WebException: The remote server returned an error: (403) Forbidden.
Upon each call I create a channel:
var proxy = (IClientChannel)channelFactory.CreateChannel();
On success, I close:
proxy.Close();
On error, I abort:
proxy.Abort();
Any ideas what's going on? What I can do to handle loads better? What to look for?