Wednesday 14 August 2013

Duplicate type with name 'Dynamics.Ax.application.' in assembly 'Dynamics.Ax.application,

Duplicate type with name 'Dynamics.Ax.application.' in assembly 'Dynamics.Ax.application, version=6.0.947.280, culture...

The following should resolve the problem:


  • Full compile AX
  • Stop the AOS
  • Truncate the SysXPPAssembly table in SQL (the table is used to contain the assemblies and to share between multiple AOS instances)
  • Delete the DLL and netmodule files in your AOS's bin\xppIL directory(C:\Program Files\Microsoft Dynamics AX\60\Server\MicrosoftDynamicsAX\bin\XppIL directory).
  • Restart the AOS
  • Perform full CIL generation

2 comments:

  1. Hi,

    I tried the above steps , but still AIF service stopped automatically. Below is the event log error:

    There was an error during processing of the managed application service auto-start for configuration path: 'MACHINE/WEBROOT/APPHOST/Default Web Site/MicrosoftDynamicsAXAif60'. The error message returned is: 'An initialization error occurred while trying to preload an application.

    Exception: System.Configuration.ConfigurationErrorsException

    Message: Duplicate type with name 'Dynamics.Ax.Application.MZK_InvestmentPayoutContract' in assembly 'Dynamics.Ax.Application, Version=6.2.1000.1437, Culture=neutral, PublicKeyToken=null'.

    Where i can this check this duplicate ?

    After re-installing Web service thorugh AX Setup it works, but if i create new or deactivate and activate existing services(inbound ports), again AIF service gets stopped and above is the event log.

    ReplyDelete
  2. Satish, we faced the same issue and the problem were old cache dll in C:\Program Files\Microsoft Dynamics AX\60\AifWebServices\Bin\Work
    FIX: uninstall AIF => DELETE THE AifWebServices FOLDER => Reinstall AIF

    ReplyDelete