Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 ?

like image 606
Andriy Kuzmych Avatar asked Dec 27 '22 09:12

Andriy Kuzmych


1 Answers

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
like image 193
Kenny Saelen Avatar answered May 10 '23 13:05

Kenny Saelen