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

Notifications

Announcements

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 148
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
    238,149 Most Valuable Professional on at
    Is the DLL for the right version of .NET Framework?
  • ShahzaibAhmed52 Profile Picture
    148 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
    238,149 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.
  • ShahzaibAhmed52 Profile Picture
    148 on at
    What would be the version for R2?
  • Verified answer
    Martin Dráb Profile Picture
    238,149 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

News and Announcements

Season of Giving Solutions is Here!

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 732 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 413 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 289 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans