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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Adding dll and using it in code

(1) ShareShare
ReportReport
Posted on by 179
Hi,
 
I am trying to use Newtonsoft.Json dll in my code. i have coppied the dll file to the bin folder.
I have also added it in refrences in AOT.
 
But still if I try to use it in my class, it does not reognize th dll and throw an error that /Newtonsoft is not declared/.
Can you help me out in this situation?
 
I have the same question (0)
  • Martin Dráb Profile Picture
    240,163 Most Valuable Professional on at
    Is the DLL for the right version of .NET Framework?
  • BZF_SA Profile Picture
    179 on at
    How can I know that dll is the right version?
     
    Currently, I am using v6.0 for the Newtonsoft.

    I am working for the first time on ax 2012 so I don't have any idea about it.
  • Martin Dráb Profile Picture
    240,163 Most Valuable Professional on at
    Well, where did you get the file from? You should have selected it there or when extracting the package, if it contains binaries for several framework versions. For example, the latest package from https://github.com/JamesNK/Newtonsoft.Json/releases contain these folders:
     
     
    It's also possible to explore the content of the file, but just getting the right one is easier.
     
    Assuming you're on AX 2012 R3, use the assembly for .NET Framework 4.5.
  • BZF_SA Profile Picture
    179 on at
    What would be the version for R2?
  • Verified answer
    Martin Dráb Profile Picture
    240,163 Most Valuable Professional on at
    .NET Framework 4.0. You can find that in AX 2012 System Requirements.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 396 Super User 2026 Season 1

#2
Subra Profile Picture

Subra 323

#3
Martin Dráb Profile Picture

Martin Dráb 243 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans