Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Error message when you test Microsoft Dynamics AX settings in the Dynamics AX Connector: "Object reference not set to an instance of an object"


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"

↑ Back to the top


Cause

Microsoft Dynamics AX Services have not been updated to use wsHttpBinding

↑ Back to the top


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>

↑ Back to the top


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

↑ Back to the top


Keywords: kbmbspartner, kbmbsmigrate, kbsurveynew, kb

↑ Back to the top

Article Info
Article ID : 2502161
Revision : 1
Created on : 1/7/2017
Published on : 8/3/2011
Exists online : False
Views : 79