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 :
Dynamics 365 Community / Forums / Finance forum / Error occured during b...
Finance forum

Error occured during build the project solution in visual Studio - Dynamics 365 for Finance and operations.

(0) ShareShare
ReportReport
Posted on by 354

Hi All,

I have one error which occurs everytime during build the project solution. Build is not working. whenever i tried to build the entired model build by Dynamics 365 -> Build models eventhough i did small changes in code then only it is working.

Whenever i tried to build the project solution the below mentioned exception occurs.

Exception occured while performing operation Parse and type resolution. Exception details: System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Dynamics.Framework.Tools.ILGeneratorAgent.CompilationService.<AssignNewLazyLanguageServiceManagedTypeResolver>b__42_0()
at System.Lazy`1.CreateValue()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Lazy`1.get_Value()
at Microsoft.Dynamics.Framework.Tools.ILGeneratorAgent.CompilationService.ParseTypeResolve(String module, String metadataPath, String compilerMetadataPath, IEnumerable`1 elements)

Anybody ever face this issue. Please help me.

Thanks in advance,

K. Vigneshvaran.

I have the same question (0)
  • Jie G Profile Picture
    on at
    RE: Error occured during build the project solution in visual Studio - Dynamics 365 for Finance and operations.

    Hi K. Vigneshvaran,

    Would you please let us know more information?

    1. Do you mean you can build the model successfully and run your project without exceptions?

    2. Do you have any build errors when you only build the project?

  • Vigneshvaran Profile Picture
    354 on at
    RE: Error occured during build the project solution in visual Studio - Dynamics 365 for Finance and operations.

    Yes Ada,

    I can build the model succesfully and run my project without exception.

    For example if am trying to create the new class "class 1" and write some code inside that class. For this if am trying to build the project solution the above exception occurs. At this time if am build the entire model using model build it works perfectly. So finally if i do small small changes in my code for that i need to put the full model build instead of project build.

    Thanks in advance

    K. Vigneshvaran.

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Error occured during build the project solution in visual Studio - Dynamics 365 for Finance and operations.

    also try to move an element at a time to a new project and see which element is causing the issue

  • Vigneshvaran Profile Picture
    354 on at
    RE: Error occured during build the project solution in visual Studio - Dynamics 365 for Finance and operations.

    Yes Rahul,

    Now am creating new project and build it. It's succesfully working for me.

    Still i dont know the exact problem what happens to my previously created project.

    Anyway thanks Rahul,

    K. Vigneshvaran.

  • Elvis Deda Profile Picture
    10 on at
    RE: Error occured during build the project solution in visual Studio - Dynamics 365 for Finance and operations.

    Hi Vigneshvaran,

    I have the same problem after upgrading AX. Did you find a solution?

  • Jie G Profile Picture
    on at
    RE: Error occured during build the project solution in visual Studio - Dynamics 365 for Finance and operations.
    Hi vigneshvaran and Elvis,
    If this wired issue exists all the time, I would suggest to redeploy a new develop environment instead of spending a lot of time investigating it.
  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Error occured during build the project solution in visual Studio - Dynamics 365 for Finance and operations.

    +1 Ada

    Also ensure every new element is build bit by bit that way issue isolation becomes easier.

  • shubhi gupta Profile Picture
    405 on at
    RE: Error occured during build the project solution in visual Studio - Dynamics 365 for Finance and operations.

    Hi vigneshvaran ,

    Closed your VS and restart AOS service and reopen your project may be this solution work for you I also faced the same issue some time back.

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Error occured during build the project solution in visual Studio - Dynamics 365 for Finance and operations.

    there could be something in cache and flushing it by reloading projects and doing a project clean and rebuild may help

  • Vigneshvaran Profile Picture
    354 on at
    RE: Error occured during build the project solution in visual Studio - Dynamics 365 for Finance and operations.

    Hi All,

    The problem is not yet solved. Still the problem exist. I have no idea to find the solution for the problem.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Finance

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans