web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

CIL Error in software update checklist

(0) ShareShare
ReportReport
Posted on by 1,318

Hi all, In software Update checklist,while doing Full application compilation no issue, during Full CIL - got errors in default classes Like below in various classes:

CIL generation: Index was out of range. Must be non-negative and less than the size of the collection.

CIL generation: Source array was not long enough. Check srcIndex and length, and the array's lower bounds.

CIL generation: Error: .NET Cast Type Name not found. Type System.String found on the stack. This code in Class/Table: PayrollTaxEngineUtil, Method: getGNISLocations may not work in CIL run time.

Deleted Xppl folder and tried, still errors coming.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at
    RE: CIL Error in software update checklist in ax 2012 R2 CU6

    Try an AOT compile in the AX client, maybe you ran axbuild against the wrong instance.

    Also if you have brought over your business data, some AIF ports might be broken until you refresh services.

  • Sathish_Chinnappan Profile Picture
    1,318 on at
    RE: CIL Error in software update checklist in ax 2012 R2 CU6

    Thanks for the reply Vilmos.

    I have only one instance and Compiled AOT in client.

    Now i'm getting sysntax errors in default classes.

    in Class\DimensionHierarchyController - Microsoft.Dynamics.AX.Frameworks.Controls.Dimensions.HierarchyDesigner

    Class\CostBIChartSliceController - Microsoft.Dynamics.Framework.Portal.UI.WebControls.AxChartDataSource

  • Anitha Eswaran Profile Picture
    312 on at
    RE: CIL Error in software update checklist in ax 2012 R2 CU6

    Hi Sathish,

    Can you try this :

    Stop the service . Go to SSMS . Truncate the data from the table SysXPPAssembly (model database). Restart the service. try a full IL.

    Regards,

    Anitha.E

  • Sathish_Chinnappan Profile Picture
    1,318 on at
    RE: CIL Error in software update checklist in ax 2012 R2 CU6

    I Stopped AOS, Deleted Xppl folder and truncated the Table SYSXPPAssembly and restarted the AOS and done full AOT compile. Still Same error.

  • Sathish_Chinnappan Profile Picture
    1,318 on at
    RE: CIL Error in software update checklist in ax 2012 R2 CU6

    I'm facing above error in dev environment, but in test environment no issues.

  • Mea_ Profile Picture
    60,284 on at
    RE: CIL Error in software update checklist in ax 2012 R2 CU6

    Now it's time to check if references in AOT point to correct dll. During upgrade you may have new dll in client or server bin folder, but sometimes references not get updated or you are using not updated client ...

  • Sathish_Chinnappan Profile Picture
    1,318 on at
    RE: CIL Error in software update checklist in ax 2012 R2 CU6

    Will Re-install AX solve this issue?

  • Sathish_Chinnappan Profile Picture
    1,318 on at
    RE: CIL Error in software update checklist in ax 2012 R2 CU6

    only client and AOS

  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at
    RE: CIL Error in software update checklist in ax 2012 R2 CU6

    Ok so my suspicion was right that you indeed have compilation errors which were not revealed by axbuild, and preventing CIL compilation.

    Those classes are using .Net assembly references. You might have the wrong .Net framework, or an installation/Windows update could have broken it.

    You could try to re-install the .Net framework required for the AX version you have, check it in the System requirements guide.

    If you are unable to fix it, since you are talking about a Dev workspace, try doing a fresh install from a newly created Windows virtual machine, and installing pre-requisites, then putting AX on top.

  • Verified answer
    Sathish_Chinnappan Profile Picture
    1,318 on at
    RE: CIL Error in software update checklist

    Re-installed Client and AOS solved the issue.

    Thanks all for the reply.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Tocauer Profile Picture

Martin Tocauer 4

#2
Community Member Profile Picture

Community Member 2

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans