Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

how to integrate third party dll with microsoft dynamics ax 2012 and dll not recognized by x++

(0) ShareShare
ReportReport
Posted on by 561

Hi,

I have a third party DLL but i need to use this DLL in dynamics ax 2012 and get data from ax and then pass the data to dll methods and print also using the dll methods.

When I copy the DLL in ax client development environment and add reference. dll is not recognized in x++ code.

Please give me your advise.

Thanks

Nawaz

*This post is locked for comments

  • Jie G Profile Picture
    on at
    RE: how to integrate third party dll with microsoft dynamics ax 2012 and dll not recognized by x++

    By the way, you can check and follow the steps to have a test:

    • In the Application Object Tree (AOT), there is a reference under the References node to the assembly that contains the class.

    • The assembly is in the Global Assembly Cache

    Reference: docs.microsoft.com/.../how-to-compile-and-run-x-that-calls-clr-managed-assemblies

  • Suggested answer
    nmaenpaa Profile Picture
    101,158 Moderator on at
    RE: how to integrate third party dll with microsoft dynamics ax 2012 and dll not recognized by x++

    What do you mean by "copy the DLL in ax client development environment"? Where did you copy it?

    Please copy it in the Bin folder under the AX client installation folder.

    Also if your code runs on server you need to put the DLL file in the AOS bin folder.

  • Suggested answer
    Jie G Profile Picture
    on at
    RE: how to integrate third party dll with microsoft dynamics ax 2012 and dll not recognized by x++

    Hi Nawaz,

    Please check whether this dll is a managed dll?  You can check it through ILSpy which is a open-source .NET assembly browser and decompiler. Downlod from
    Classes in assemblies that are managed by the common language runtime (CLR) can be accessed in X++ code. This feature of Microsoft Dynamics AX is called .NET interop from X++. It is useful when you want your X++ code to access the functionalities in a CLR managed assembly. This includes assemblies that are installed with the .NET Framework. It also includes any assemblies that you create with a language such as C# or Visual Basic.
    For how to compile and run X++ that Calls CLR Managed Assemblies, please refer: docs.microsoft.com/.../how-to-compile-and-run-x-that-calls-clr-managed-assemblies

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 100 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 50

#3
shanawaz davood basha Profile Picture

shanawaz davood basha 6

Featured topics

Product updates

Dynamics 365 release plans