
Hi, Currently we are facing a problem when we call Create/Update on the CrmService many times within a short time span (5000 requests within 5 minutes) . We receive following Exception:
"Native errorcode:10048" , "Only one usage of each socket address (protocol/network address/port) is normally permitted 10.0.18.24:5555"
here is the code for how we create the an instance of the CrmService:
string url = http://localhost:5555/MSCrmServices/2007/CrmService.asmx;
string organizationName = "cmt";
CrmAuthenticationToken token = new CrmAuthenticationToken();
token.AuthenticationType = 0;
token.OrganizationName = organizationName;
_crmService = new CrmService();
_crmService.Url = url;
_crmService.CrmAuthenticationTokenValue = token;
_crmService.Credentials = System.Net.CredentialCache.DefaultCredentials;
We have already tried the solutions suggested in the in the following sites without any results:
http://notatkiprogramisty.blogspot.com/2008/04/systemnetsocketssocketexception-only.html
http://www.crowehorwath.com/cs/blogs/crm/
We have experimented with creating a Test WCF service being hosted in the same IIS instance and we could successfully submit 30000 request within 3 minutes without any problems. So this suggests that the problem is not a setting on the Web Server (IIS). It seems that CrmService creats an object per call on the server and then it does not Close the connections correctly.
*This post is locked for comments
I have the same question (0)