Monday 8 December 2014

The CIL generator found errors and could not save the new assembly in AX 2012

Hi AXTechies,
In our daily work progress when performing the Incremental CIL suddenly you will be prompted with the below error 
as the CIL generator found errors and could not save the new assembly. Dont get tensed it is very easy to solve quickly.
Solution:-
 1. Stop the AOS Service.
2. Delete all of the source in the C:\Program Files\Microsoft Dynamics AX\60\Server\MicrosoftDynamicsAX\bin\XppIL directory.
3. Start the AOS Service.
4. Perform a Full CIL.
5. Perform a Incremental CIL.

3 comments:

  1. I am facing the same problem, error occurred during the Compilation to .Net CIL Generation, I did the same what ever you mention,
    I went to the location of XPPIL directory and removed all the assembly from there, after that i synchronize the database and the full compilation and next the CIL generation, but no improvement.
    I want to dictate my scenario over here.
    My Database is 2012 standard and located on this (10.6.123.50)
    and AX2012 R3 is on different IP (10.6.123.51).
    Installation done successfully as well as Application Compile without any error.
    the next step when compile with CIL Generation, error occurred "The CIL generator found errors and could not save the new assembly”.
    what should be possible error in this environment.
    For your clarification,
    User is Member of Domain Admin and Admin of local system.
    Thanking you

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. I am facing the same problem, error occurred during the Compilation to .Net CIL Generation, I did the same what ever you mention,
    I went to the location of XPPIL directory and removed all the assembly from there, after that i synchronize the database and the full compilation and next the CIL generation, but no improvement.
    I want to dictate my scenario over here.
    and AX2012 R2 .
    Installation done successfully as well as Application Compile without any error.
    the next step when compile with CIL Generation, error occurred "The CIL generator found errors and could not save the new assembly”.
    what should be possible error in this environment.
    For your clarification,
    User is Member of Domain Admin and Admin of local system.
    Thanking you

    ReplyDelete