Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

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.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×