Views:

SYMPTOMS

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"

CAUSE

Microsoft Dynamics AX Services have not been updated to use wsHttpBinding

RESOLUTION

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>

MORE INFORMATION

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

Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.