This allways results in the following error code 351:
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index at
System.Collections.Generic.List'1.get_Item(Int32 index) at Microsoft.Dynamics.Ax.Xpp.ILGenerator.loadFieldsIL(TypeBuilder typeBuilder) at Microsoft.Dynamics.Ax.Xpp.ILGenerator.declareFields() at Microsoft.Dynamics.Ax.Xpp.ILGenerator.GenerateXppModule()
Knowing that when the AOT compiles CIL should also work I tried at first these steps:
- stop the AOS
- navigate to C:\Program Files\Microsoft Dynamics AX\60\Server\AX2012R2CU7\bin\
- rename XppIL Folder to something else
- restart AOS
In my case I still got the error. So instead of compiling with axbuild I started a compilation of all tables and classes from the aot. After that I was able to generate full CIL.
So instead of compiling the System with axbuild we should still do a compilation from the AOT when we have a newly installed environment.
No comments:
Post a Comment