When you test Microsoft Dynamics AX settings in the Microsoft Dynamics AX Connector, you receive the following error message:Test settings failed:The following exception occurred while attempting to retrieve endpoints:Object reference not set to an instance of an object"

Symptoms

Microsoft Dynamics AX Services have not been updated to use wsHttpBinding

Cause

Update the AX web.config file by following these steps:1. Open the web.config file located at the following location:C:\Program Files\Microsoft Dynamics AX\50\AifWebServices.2. Remove the <httpModules> section because these modules are already registered.3. Update the file to configure the services to all use wsHttpBinding:  <system.serviceModel>    <bindings>      <basicHttpBinding>        <binding name="basicHttpBindingWindowsAuth">          <security mode="TransportCredentialOnly">            <transport clientCredentialType="Windows" />          </security>        </binding>      </basicHttpBinding>   <wsHttpBinding>   <binding name = "wsHttpWindowsAuthAif" />   </wsHttpBinding>    </bindings>        <services>      <service behaviorConfiguration="serviceBehaviorConfiguration"        name="Microsoft.Dynamics.IntegrationFramework.Service.AssetConditionService">        <endpoint address="" binding="wsHttpBinding" bindingConfiguration="wsHttpWindowsAuthAif"          bindingNamespace="http://schemas.microsoft.com/dynamics/2008/01/services"          contract="Microsoft.Dynamics.IntegrationFramework.Service.CustomerService" />      </service>    </services>

Resolution

This information can also be found in the Implementation Guide of the Connector, which can be found at https://mbs.microsoft.com/partnersource/deployment/resources/productreleases/MDAX2009_CRMConnector.How to: Call an AIF Web Service from C#http://msdn.microsoft.com/en-us/library/cc652581.aspx

More Information

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.