Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

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

Posted on by 515

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
    Jie G 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
    nmaenpaa 101,156 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
    Jie G 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans