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)

Register/Use .Net class library having async methods (.net framework 4.5) in AX x++

(0) ShareShare
ReportReport
Posted on by

Hi All,

I've created a .Net class library which uses some external API which required .Net framework 4.5 and async/await support. When I am trying to register this dll in AX then I am getting error "The selected file is not a valid .NET assembly, therefore the reference cannot be added."

Any idea how can I use this dll in AX.

Thanks in advance

Arun.

*This post is locked for comments

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

    AX 2009 uses .NET Framework 3.5, as far as I remember.

  • Community Member Profile Picture
    on at

    Is there any workaround or any way to use c# library built in framework 4.0 in AX 2009?

  • Martin Dráb Profile Picture
    237,978 Most Valuable Professional on at

    Yes, you can create a separate .NET 4 process using the library and let it communicate with AX.

  • Community Member Profile Picture
    on at

    How can we do that? Do you have any samples for that?

  • Verified answer
    Martin Dráb Profile Picture
    237,978 Most Valuable Professional on at

    There are a many ways how to develop a program and how to implement interprocess communication. Forget about code samples in the moment; you have to analyze and design the solution before you can start thinking about code.

    For example, you may want to build a Windows service, or a normal application started by a user, or by AX, or you can integrate the library to some existing system. You can communicate via web services, Business Connector, a queue, files or something else...

  • Community Member Profile Picture
    on at

    Ok. Got it.

    Thanks for your help.

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
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans