Duplicate type with name 'Dynamics.Ax.application.<My Class Name>' in assembly 'Dynamics.Ax.application,

Andriy Kuzmych picture Andriy Kuzmych · Feb 15, 2013 · Viewed 8.3k times · Source

I see following error when I compile CIL in Dynamics 2012 ax -

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

I tried

  1. Delete class from AOT
  2. Delete XppIL directory (c:\Program Files\Microsoft Dynamics AX\60\Server\InstanceName\bin)
  3. Restart AOS
  4. Run CIL compile

What else I can try ?

Answer

Kenny Saelen picture Kenny Saelen · Feb 17, 2013

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
  • Restart the AOS
  • Perform full CIL generation