locked
Dynamics Connector for AX 2009 Test Settings Error Object reference not set to an instance of an object RRS feed

  • Question

  • I came across this error while setting adapters for AX 2009 on Connector for Microsoft Dynamics version 3.2.606.2

    I know the error message is exactly the same as described on here but I keep getting the same error even after I follow all steps provided. 

    Web.config of the AIF site is as follows. 

    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
      <system.web>
        <!--
                The <customErrors> section enables configuration of what to do if/when an unhandled
                error occurs during the execution of a request.  Specifically, it enables developers
                to configure html error pages to be displayed in place of a error stack trace.
            -->
        <customErrors mode="RemoteOnly" />
    
        <!--
                The <authentication> section enables configuration of the security authentication
                mode used by ASP.NET to identify an incoming user. 
            -->
        <authentication mode="Windows"/>
    
    	  <!-- 
                The below settings (httpModules,trust) are in place to make sure AIF works 
                when deployed with Windows Sharepoint Server (WSS). E.g. With Enterprise Portal (EP).
                WSS overrides certain Asp.NET configuration which makes standard Asp.NET applications to fail. 
                For more details refer to http://support.microsoft.com/?id=828810 
            -->
    
    	  <!-- 
                Set the trust back to Full.     
        	      WSS configures a very restrictive trust policy that does not allow most applications to run correctly.
            -->
    	  <trust level="Full" originUrl="" />
    
      </system.web>
    
      <!-- Configure tracing information for debugging in production version -->
      <system.diagnostics>
        <!-- This is relevant only for DEBUG build.
             This disables assert dialog when Debug.Assert() is used in code. Since code will be running in IIS (no-ui)
             we have to disable dialogs. We will redirect it to a file
             Please make sure to give a full file path to where the assertion file should be located
          -->
        <assert assertuienabled="false" logfilename="AifDebugAsserts.webinfo" />
    
        <!-- This is used for enabling tracing in retail and debug builds.
               AIF Service processing stack outputs information messages used for debugging. 
               Possible values for switch are Off, Warning, Information, Critical, Verbose. 
               Change switchValue to Information to enable this.
          -->
        <sources >
          <source name="AifServiceProcessing" switchValue="Off">
            <listeners >
              <add name="TextWriterListener"
                   type="System.Diagnostics.TextWriterTraceListener"
                   initializeData="AifServiceTrace.webinfo" >
              </add>
              <remove name="Default" />
            </listeners>
          </source>
        </sources>
      </system.diagnostics>
    
      <appSettings>
        <!-- 
                This is the name of the 'system wide'/'global' configuration that should be used to log on using .NET Business Connector.
                The default case of the value being empty is - Business connector will log on to Microsoft Dynamics using the first available 
                configuration from the registry and use it.
                The value of the key can be:
                1. The name specified for the new global configuration.
                2. The file name (with full path) to the exported configuration.
                If this value is specified, this configuration is used to log on to Microsoft Dynamics
                Usage: Override this value in case you dont want the default behavior of configuration. 
                E.g. connect to different AOS server, or use a different default company etc.
            -->
       
      </appSettings>
    
    
      <system.serviceModel>
        <bindings>
          <basicHttpBinding>
            <binding name="basicHttpBindingWindowsAuth">
              <security mode="TransportCredentialOnly">
                <transport clientCredentialType="Windows" />
              </security>
            </binding>
          </basicHttpBinding>
          <wsHttpBinding>
            <binding name="wsHttpWindowsAuthAif" receiveTimeout="00:10:00"
              sendTimeout="00:10:00" bypassProxyOnLocal="false" transactionFlow="true"
              maxReceivedMessageSize="2147483647" useDefaultWebProxy="true">
              <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
                maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
              <reliableSession enabled="true" />
            </binding>
          </wsHttpBinding>
        </bindings>
        
        <services>
          <service behaviorConfiguration="serviceBehaviorConfiguration"
            name="Microsoft.Dynamics.IntegrationFramework.Service.CustomerService">
            <endpoint address="" binding="wsHttpBinding" bindingConfiguration="wsHttpWindowsAuthAif"
              bindingNamespace="http://schemas.microsoft.com/dynamics/2008/01/services"
              contract="Microsoft.Dynamics.IntegrationFramework.Service.CustomerService" />
          </service>
          <service behaviorConfiguration="serviceBehaviorConfiguration"
            name="Microsoft.Dynamics.IntegrationFramework.Service.CustomerGroupsService">
            <endpoint address="" binding="wsHttpBinding" bindingConfiguration="wsHttpWindowsAuthAif"
              bindingNamespace="http://schemas.microsoft.com/dynamics/2008/01/services"
              contract="Microsoft.Dynamics.IntegrationFramework.Service.CustomerGroupsService" />
          </service>
        </services>
    
        <behaviors>
    
          <endpointBehaviors>
            <behavior name="ConfigurationServiceBehavior" >
              <dataContractSerializer maxItemsInObjectGraph="2147483647" />
            </behavior>
          </endpointBehaviors>
        
          <serviceBehaviors>
            <behavior name="serviceBehaviorConfiguration">
              <serviceMetadata httpGetEnabled="true" />
              <serviceDebug includeExceptionDetailInFaults="true" />
            </behavior>
          </serviceBehaviors>
        </behaviors>
    
        
        <serviceHostingEnvironment multipleSiteBindingsEnabled="true" >
          <baseAddressPrefixFilters>
            <add prefix="http://localhost:90" />
          </baseAddressPrefixFilters>
        </serviceHostingEnvironment>
        
      </system.serviceModel>
    </configuration>


    I use AX 2009 CU7 on Windows Server 2008 R2 CU1 for integration with CRM 2013.

    The same URL works when I browse the service (.svc file) on web browser & add service reference from Visual Studio.

    Is this connector really works for AX 2009?  


    • Edited by Andhina M Tuesday, April 8, 2014 9:23 AM
    Tuesday, April 8, 2014 9:07 AM