web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

CrmService Only one usage of each socket address (protocol/network address/port) is normally permitted

(0) ShareShare
ReportReport
Posted on by 5

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)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#1
UllrSki Profile Picture

UllrSki 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans