CIL generator found errors and could not save the new assembly

 CIL Generation - AX 2012 - Error when generating

You receive this when you run a full "Compile into .Net Framework CIL", togheter with "CIL generation: The given key was not present in the dictionary.". If this is the case, you have option A) that is run a complete AOT compile. However, this is too much time consuming and you could try a shortcut: look at the generation log (the path can be found in this post) and you will see something like: Finished pass 1 at 7/24/2012  2:24:38 PM Error when loading the method. Type: ProjTable, Method:  initValue System.Collections.Generic.KeyNotFoundException: The given key was  not present in the dictionary. .... The CIL generator found  errors and could not save the new assembly. Errors: 3 Warnings:  0  So, just compile the objects in case and give it another try ...  the CIL should be generating now.

 
原文地址:https://www.cnblogs.com/Fandyx/p/2920481.html