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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Error while trying to Compile into .net Framework CIL-"CIL,Object reference not found"

(0) ShareShare
ReportReport
Posted on by

Hi Everyone !

I have installed a Hotfix, and now following the steps as mentioned in the Software Update Checklist. The steps below have been completed:

1. Compile application

2. Detect code upgrade conflicts

Now, when I try to Compile into .Net Framework CIL, I get the error as-"CIL generation: Object reference not set to an instance of an object.", Path-\XppIL


According to various sources online I tried the following :

1. Stop AOS 

2.  Delete the contents of the bin\XppIL [C:\Program Files\Microsoft Dynamics AX\60\Server\MicrosoftDynamicsAX\bin\XppIL] folder on the AOS server (with backup in place) [not the folders, just the files which are outside the folders 

3. Restart AOS

4. Generate Full CIL

However, it still did not solve my problem and it threw the same above error.

Also, is this the right step after I install a Hotfix? Please correct me if wrong.

Thank you..

 

*This post is locked for comments

I have the same question (0)
  • Martin Dráb Profile Picture
    237,880 Most Valuable Professional on at

    If any conflicts were detected at step 2, resolve the them (which must be done individually for each customized layer). Then compile the application again and make sure that there are no error. Only then you can generate CIL, because it depends on information from the X++ compiler.

  • Community Member Profile Picture
    on at

    Thanks Martin.

    I went through the second step again, and found a project "AXUpgradeRecIDconflicts" created in the private node of the Projects. I also found a message window with few EDTs and Tables mentioned. So are these conflicts as well?

    P.S: The list of Tables that i get in the AXUpgradeRecIDconflicts project are all customised objects

    What I tried to do now, is take a backup of those objects, delete and go through the 2nd step again to check again for any more conflicts. Later when the hotfix is successfully applied, I would Import the customised objects(tables) and using the compare functionality would merge the code. But after deleting the objects and after the second step, I found the same objects again. I am doing it right?

    How do I further go about it?

  • Martin Dráb Profile Picture
    237,880 Most Valuable Professional on at

    RecId conflicts won't stop the compilation; I meant code conflicts. If there are no code conflicts and this was your only layer, just make sure that the application compiles without any error. X++ error are the usual reason why CIL can't generate, that's why it's important to verify it.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans