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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Custom wcf binding OrganizationServiceContext

(0) ShareShare
ReportReport
Posted on by 130

Hi All, 

I was wondering if it is possible to add a custom wcf binding to the organizationServiceContext. I created an application which has complex logic and creates/updates a lot of records. Therefore I used multithreading by putting some code in a parallel foreach loop. However after a while I get an error: Too many active security negotiations or secure conversations. 

Normally this can be solved by using a custom wcf binding and increasing the maxPendingSessions to a higher number than the default 128. However how can this be done for the organizationServiceContext or is this impossible? 

*This post is locked for comments

I have the same question (0)
  • Verified answer
    ScottDurow Profile Picture
    21 on at

    If you use the ServiceConfigurationFactory (msdn.microsoft.com/.../microsoft.xrm.sdk.client.serviceconfigurationfactory_members.aspx), you have access to the bindings using the currentServiceEndpoint.Binding msdn.microsoft.com/.../hh547252.aspx

    Although I've never tried setting custom bindings on this property.

  • Chino Profile Picture
    130 on at

    Thank you, I will try to do something with this.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans