Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

Errors VS when opening the project

Posted on by 700

Hello,

when I open my project in Visual Studio I get two compilation errors below.

When I remove all objects from my project, compile it, it compiles without errors. Then I add my objects again to the project, compile it, only then it is error free. It is just annoying, but repeats every time.


Error        BP Rule: [Exception occured while performing operation Best practice checks. Exception details]:System.ArgumentNullException: Value cannot be null.
Parameter name: referencedAssembliesFolders
   at Microsoft.Dynamics.Framework.Tools.ILGeneratorAgent.MetadataProviderExtensions.AddReferenceProvider(IMetadataProvider provider, IEnumerable`1 referencedAssembliesFolders, IDiagnosticSink diagnostics, String modelModule, MetadataProviderFactory factory)
   at Microsoft.Dynamics.Framework.Tools.ILGeneratorAgent.CompilationService.RunBestPracticeChecks(String module, String metadataPath, String compilerMetadataPath, IEnumerable`1 referencedAssembliesFolders, IEnumerable`1 elements, String modelName, Boolean isNormalizedCollectionNeeded)            0    

What is wrong with the project?

Thanks

Actions
Use rich formatting
Suggested Answer
Submit Cancel
  • OrangeRocks Profile Picture
    OrangeRocks 700 on at
    RE: Errors VS when opening the project

    OK thank you Blue Wang,

    It helped actually. Now the only tiny issue is that I get those error messages  also when I change my objects.

    Yes, I have updated to the PU28.

    Thank you

  • Verified answer
    Blue Wang Profile Picture
    Blue Wang on at
    RE: Errors VS when opening the project

    Hi Pam,

    Have you updated the PU?

    Please check this if it's helpful

    stackoverflow.com/.../d365-devvm-bestpractise-broken-after-updating-to-pu28

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans