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"


Microsoft Dynamics AX Services have not been updated to use wsHttpBinding


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:

        <binding name="basicHttpBindingWindowsAuth">
          <security mode="TransportCredentialOnly">
            <transport clientCredentialType="Windows" />
   <binding name = "wsHttpWindowsAuthAif" />
      <service behaviorConfiguration="serviceBehaviorConfiguration"
        <endpoint address="" binding="wsHttpBinding" bindingConfiguration="wsHttpWindowsAuthAif"
          contract="Microsoft.Dynamics.IntegrationFramework.Service.CustomerService" />


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#

More Information

Need more help?

Expand your skills
Explore Training
Get new features first
Join Microsoft Insiders

Was this information helpful?

What affected your experience?

Any additional feedback? (Optional)

Thank you for your feedback!