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 :
Microsoft Dynamics AX (Archived)

adding a dll to AX (in server) and refer it in code.

(0) ShareShare
ReportReport
Posted on by

Hello,

I created a C# library project.

I want to use that library and methods in AX.

Need samples how doing that, and what shall I do in server.

Thanks :)

*This post is locked for comments

I have the same question (0)
  • Andrew Xu Profile Picture
    3,877 on at
    RE: adding a dll to AX (in server) and refer it in code.

    You should add it to client bin folder, otherwise, you won't be able to use that client to compile the code in the development environment.

  • Suggested answer
    Anton Venter Profile Picture
    20,281 Super User 2025 Season 2 on at
    RE: adding a dll to AX (in server) and refer it in code.

    C:\Program Files\Microsoft Dynamics AX\60\Server\<aosname>\bin. The same folder as the Ax32Serv.exe.

  • Community Member Profile Picture
    on at
    RE: adding a dll to AX (in server) and refer it in code.

    Thank you.

    Shall I add the dll to bin client folder or to bin server client folder.

    (C:\Program Files\Microsoft Dynamics AX\60\Server\<aosname>\bin or C:\Program Files (x86)\Microsoft Dynamics AX\60\Client\Bin)

    Thanks :)

  • Suggested answer
    Anton Venter Profile Picture
    20,281 Super User 2025 Season 2 on at
    RE: adding a dll to AX (in server) and refer it in code.

    Hi Eitan, simply add the DLL to the bin folder of the AOS server instance on the AOS server. You could also add it to the Windows GAC, but it must be signed correctly. Then add a reference to the DLL in the AOT and you are set. Remember, client side code won't be able to access the DLL, only code running on the server tier.

    You can use the DLL in code pretty much the same way as you would in VS. What exactly do you mean by "samples"?

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 2

#1
Guy Terry Profile Picture

Guy Terry 2 Moderator

#1
Martin Dráb Profile Picture

Martin Dráb 2 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans