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)

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

I have the same question (0)
  • 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,160 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Syed Haris Shah Profile Picture

Syed Haris Shah 9

#2
Mea_ Profile Picture

Mea_ 2

#2
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