Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Suggested answer

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

  • 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,148 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

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,995 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,610 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans