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 630

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

  • Rahul.p Profile Picture
    630 on at
    RE: A reference to Dynamics.AX.Directory is required to compile this module

    Thanks Martin and Piyush.

    It's working.

  • Verified answer
    Martin Dráb Profile Picture
    231,998 Most Valuable Professional on at
    RE: A reference to Dynamics.AX.Directory is required to compile this module

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

  • Verified answer
    Martin Dráb Profile Picture
    231,998 Most Valuable Professional on at
    RE: A reference to Dynamics.AX.Directory is required to compile this module

    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
    Piyush Adhikari Profile Picture
    2,544 on at
    RE: A reference to Dynamics.AX.Directory is required to compile this module

    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

  • Rahul.p Profile Picture
    630 on at
    RE: A reference to Dynamics.AX.Directory is required to compile this module

    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

  • Martin Dráb Profile Picture
    231,998 Most Valuable Professional on at
    RE: A reference to Dynamics.AX.Directory is required to compile this module

    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
    630 on at
    RE: A reference to Dynamics.AX.Directory is required to compile this module

    I added three package:-

    Application platform , Application suite and directory

    Please tell me which package is missing.

  • Martin Dráb Profile Picture
    231,998 Most Valuable Professional on at
    RE: A reference to Dynamics.AX.Directory is required to compile this module

    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
    630 on at
    RE: A reference to Dynamics.AX.Directory is required to compile this module

    Hi Martin,

    Thank's for your prompt reply.

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

  • Verified answer
    Martin Dráb Profile Picture
    231,998 Most Valuable Professional on at
    RE: 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

    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.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,278 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,998 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans