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 :
Finance | Project Operations, Human Resources, ...
Unanswered

Compiler does not display errors in the code

(0) ShareShare
ReportReport
Posted on by 87

Hello,

For some reason i can not get to work the real-time compiler on Visual Studio 2019. For testing purposes I create a new solution with a new project with only a class.

Everytime i Ctrl+S, it doesnt pop up the red lines with errors and I get this error message:

Error System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Dynamics.Framework.Tools.ILGeneratorAgent.CompilationService.ParseTypeResolve(String module, String metadataPath, String compilerMetadataPath, IEnumerable`1 referencedAssembliesFolders, IEnumerable`1 elements)

I tried build,rebuild, clean, create a new project, restart the AOS, etc.. I also read a post with same error years ago, so i checked that my version wasn't PU25. Actually is "Update55 (7.0.6651.143)".

I have a partner working on the migration from AX2012 that also has the same problem.. ¿Maybe we should try a model build?

Thanks in advance,

Eisenberk.

I have the same question (0)
  • Mohit Rampal Profile Picture
    12,565 Moderator on at

    Hi, Please try building your custom model with all references.

  • Eisenberk Profile Picture
    87 on at

    Hi Mohit Rampal ,

    We are a team working on this model. So, ¿is there the possibility that rebuilding the model on my machine ruins my partners's work?

  • Mohit Rampal Profile Picture
    12,565 Moderator on at

    Rebuilding the model will not impact your partner's work provided your partner is using other Devbox. If you both are sharing a devbox then the application will be down till models are built and no one can use it.

  • LCAS Profile Picture
    15 on at
    Did you find a solution?
    I have the same error any time I save a modification in an AOT object or code. BP warnings and errors are not shown. It seems that on save VS is unable to evaluate X++ syntax.
    IntelliSense (or how is it called X++ code-completion aid) does not seem to work properly.
     
    Rebuild removes the problem and returns correct errors and warning, but any minor modification and save, will raise this error again. I also tried opening and closing VS. Not solved
    I have no Idea where to look and what else to try.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 611 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 529 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans