The CIL generator found errors and could not save the new assembly Error

I would like to discuss how to solve the CIL compilation error on this post.
when I add custom code in standard classes and saved, I encounter an error saying “The CIL generator found errors and could not save the new assembly”.Reason might be CIL generation issue.




So, how do we fix this problem?

Step 1: Stop the AOS

Step 2: Delete all of the source in the C:\Program Files\Microsoft Dynamics AX\60\Server\MicrosoftDynamicsAX\bin\XppIL directory

When you do this, just delete all the files within the XppIL folder that are outside of other folders. Make a backup just in case, and the files would be generated while the full compilation is taking place.







Step 3: Start the AOS



Step 3: Perform a full compile



Step 4: Perform a full CIL generation




It will take time to complete & fixes the issue.

Comments

Post a Comment