web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Accessing .net DLL from Axapta

(0) ShareShare
ReportReport
Posted on by 195

Hi all

I try to call a .net dll from my X++ Code. The dll is written by my self and I got an error which says that my dllfunction is not available.

I don't know why this is.

 

I am an absolute beginner in this stuff and need support. My code lloks like the following:

DLL mossDll;
DLLFunction function;
 ;

mossDll = new DLL("AXMossExchangeDLL.dll");
function = new DLLFunction(mossDLL, "uploadDocument");
           

 

 

Regards Chris

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    237,878 Most Valuable Professional on at

    I would suggest a different approach, namely CLR Interop.

    You have to add your library to the AOT (References node) and then you will be able to call your class directly from X++ code. See the link above for more details.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Ali Zaidi Profile Picture

Ali Zaidi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans