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

Announcements

No record found.

News and Announcements icon
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
    238,745 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
    238,745 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
    238,745 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
    238,745 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
    238,745 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Sagar Suman Profile Picture

Sagar Suman 2 Super User 2026 Season 1

#1
Alexey Lekanov Profile Picture

Alexey Lekanov 2

#1
Pratik Bhosle Profile Picture

Pratik Bhosle 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans