Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Getting Error While adding Dll to nav 2009R2

(0) ShareShare
ReportReport
Posted on by 425

Hi Experts,

I want to add Newtonsoft.Json.dll to nav 2009R2. I have copied the .dll file and pasted in classic Add-in's folder and Service Add-in's folder.

Now I am trying to use that .dll as dotnet variable but I am getting error while opening from Global variables see below.

Json.png

---------------------------
Microsoft Dynamics NAV Classic
---------------------------
.NET interop: exception occured, 'Could not load file or assembly 'C:\Program Files (x86)\Microsoft Dynamics NAV\60\Classic\Add-ins\Newtonsoft.Json.dll' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.'.

---------------------------
OK  
---------------------------

How to solve this please help me

Thank You

Mahesh U

*This post is locked for comments

  • Suggested answer
    ShanAbeywicrema Profile Picture
    ShanAbeywicrema 942 on at
    RE: Getting Error While adding Dll to nav 2009R2

    Hello Mahesh,

    Please refer bellow URL. It might help you.

    community.spiceworks.com/.../2044833-microsoft-net-framework-4-5-is-already-a-part-of-this-operating-system

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Getting Error While adding Dll to nav 2009R2

    Hello Mahesh,

    Did you get around this problem?

  • Mahesh U Profile Picture
    Mahesh U 425 on at
    RE: Getting Error While adding Dll to nav 2009R2

    Hi Suresh,

    I am trying to install but it is saying that you already installed .net framework 4.5 or it is a part of operating system.

    Thank You

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 44,626 on at
    RE: Getting Error While adding Dll to nav 2009R2

    On your Server and Client just download 4.5 Framework from Microsoft website and install it.

    www.microsoft.com/.../details.aspx

  • Mahesh U Profile Picture
    Mahesh U 425 on at
    RE: Getting Error While adding Dll to nav 2009R2

    Hi All,

    Thanks for your reply.

    Where do i upgrade my framework ?in nav?if yes then how to upgrade framework 3.5 to 4.5.

    Thank You

    Mahesh U

  • Suggested answer
    Alexander Ermakov Profile Picture
    Alexander Ermakov 28,094 on at
    RE: Getting Error While adding Dll to nav 2009R2

    Agree with other members. Install the same or higher framework than those for dll created.

  • Suggested answer
    RockwithNav Profile Picture
    RockwithNav 6,562 on at
    RE: Getting Error While adding Dll to nav 2009R2

    Seems there's a difference between the framework on which the assembly was made and the one you are trying to execute. Install the same version or the higher version.

  • Suggested answer
    Maneesha Profile Picture
    Maneesha 5,889 on at
    RE: Getting Error While adding Dll to nav 2009R2

    Mahesh U ,

    You'll  have to upgrade the .NET

  • Suggested answer
    Yogesh Kulkarni_ Profile Picture
    Yogesh Kulkarni_ 1,762 on at
    RE: Getting Error While adding Dll to nav 2009R2

    After copying the .DLL start restaring the NAV Service and the Client.

    Else refer below link:

    https://navnetwork.wordpress.com/2012/05/30/consume-a-dot-net-class-in-ms-dynamics-nav-2009-sp1-r2/

     

    -Yogesh Kulkarni
    Please verify, if you find answer helpful.

  • Suggested answer
    Amol Salvi Profile Picture
    Amol Salvi 18,694 on at
    RE: Getting Error While adding Dll to nav 2009R2

    Have you register the DLL ?

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,321 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans