Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

Dynamics SDK - How to change max clock skew when using late binding with an IOrganizationService

$
0
0

I am attempting to connect to Dynamics using late binding and am recieving the error message

"An unsecured or incorrectly secured fault was received from the other party."

 

From what i have been able to find out the most likely cause of this is the clocks being out of sync between the machine making the request and the machine handling the request, unfortunately this is something that is out of my control. If i was using a standard WCF service i would be able to create a custom binding in the web.config, something like the following

<system.serviceModel>
    <bindings>
      <customBinding>
        <binding name="customDynamicsBinding">
          <security authenticationMode="UserNameOverTransport" requireSecurityContextCancellation="true">
            <localServiceSettings maxClockSkew="Infinite"/>
            <localClientSettings maxClockSkew="Infinite"/>
            <secureConversationBootstrap />
          </security>
          <textMessageEncoding />
          <httpsTransport />
        </binding>
      </customBinding>
    </bindings>
  </system.serviceModel>

How would i use a custom binding like this with the late bound Dynamics SDK? Alternatively is there anyway i can set the maxClockSkew for requests against the IOrganizationService without using the custom binding?

 

 

 


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images