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)

A reference to Dynamics.AX.Directory is required to compile this module

(0) ShareShare
ReportReport
Posted on by 632

Hi friends,

While write the job i am getting this error. Please see the blow:

A reference to 'Dynamics.AX.Directory, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' is required to compile this module.New (USR) [New Model] K:\AosService\PackagesLocalDirectory\bin\XppSource\New Model\AxClass_New1.xpp

28501.Capture.PNG

*This post is locked for comments

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

    Open Dynamics 365 > Model management > Update model parameters, find your model (New Model) there and add a reference to the Directory package.

    By the way, please use shorter and cleaner thread titles; I'll modify this one for you.

  • Rahul.p Profile Picture
    632 on at

    Hi Martin,

    Thank's for your prompt reply.

    I added directory package in my new module but still i am getting the error.

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

    Now rebuild the package and if you get the error, make sure it's really about the same package. You'll likely get the same error about another missing package, which you must reference in the same as you did for "Directory".

  • Rahul.p Profile Picture
    632 on at

    I added three package:-

    Application platform , Application suite and directory

    Please tell me which package is missing.

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

    I don't know, but you'll find it if you compile the code and look at the error message, as I just explained.

  • Rahul.p Profile Picture
    632 on at

    I have rebuild the package and again same error is coming

    A reference to 'Dynamics.AX.ContactPerson, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' is required to compile this module

  • Verified answer
    Piyush Adhikari Profile Picture
    2,546 on at

    Add contactperson reference in your model

    Open Dynamics 365 > Model management > Update model parameters

    select your model, click on next and select contactPerson and next

    hope this will help you

  • Verified answer
    Martin Dráb Profile Picture
    237,996 Most Valuable Professional on at

    It's not the same error; it's clearly saying that now you're missing ContactPerson package, not Directory. Please read once more what I told you; it's all already there.

  • Verified answer
    Martin Dráb Profile Picture
    237,996 Most Valuable Professional on at

    Rahul.p, please don't forget to close resolved threads by marking the verified answers.

  • Rahul.p Profile Picture
    632 on at

    Thanks Martin and Piyush.

    It's working.

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
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans