Full CIL generation error : " The CIL generator found errors and could not save the new assembly"

Follow the below mentioned 5 steps:


Step 1: Stop the AOS services

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

Step 4: Perform a full compile i.e full AOT Compile(it would take some time)
 Perform full compilation in parallel to save time refer to the following post:
Full AOT compilation in parallel using command line



Once the full compilation is completed check the log file for any error during the compilation an first fix those errors.. The log can be viewed on the path:
 C:\Program Files\Microsoft Dynamics AX\60\Server\MicrosoftDynamicsAX\Log

Step 5: Perform a full CIL generation

Now the issue would be resolved:-)

Comments

Popular posts from this blog

D365: SSRS Report Development/ Customization

D365: X++ code to add custom lookup on worker to show specific workers team workers only

Error message when you log on to a Microsoft Dynamics AX 4.0 client: "You are not a recognized user of Microsoft Dynamics AX"