Microsoft Dynamics AX Developer Center Headlines

My Card

Monday, June 7, 2010

AIF – Web service Configuration - Troubleshooting

I was working with AIF web services configuration on Win server 2008-r2, AX 2009, and IIS 7.0 machine and faced errors during configuration. I thought it might be useful for everyone to share with:
  1. If you get the 404 error while accessing the service URL, then it might be because WCF is not registered. Consider registering Windows Communication Foundation (WCF) with IIS. To register WCF If IIS has installed after .net framework then use below options


    1. Open command prompt and set the directory path to WCF directory, which is usually, C:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation.
    2. Run the following command: ServiceModelReg.exe /i /x Refer tech-net link for more detailed information.

  2. If you face the error shown in below image after registering the WCF then check the below points to get rid of the error:


  • Check that the windows authentication has enabled for AIF virtual directory.

  • Following should be the binding section of web.config file available in virtual directory physical path:


  • Enabled providers for virtual directory are NTLM and Negotiate both:


I was able to make the web service work after these troubleshooting steps. Hope these might be a help to anyone.