Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

How to avoid 3rd Party library dependency error in my custom DotNet Variable

(0) ShareShare
ReportReport
Posted on by 1,112

Dear Sir,

I have created a DotNet Variable using a 3rd party library thru  "Add reference..." . When I execute the code in NAV 2016 environment, it's showing the following error message...

Microsoft Dynamics NAV
---------------------------

A call to xyz failed with this message: Could not load file or assembly '3rd_Party_dll, Version=4x.0.3x.1x15, Culture=neutral, PublicKeyToken=b1b72c69714d4847' or one of its dependencies. The system cannot find the file specified.
---------------------------
OK
---------------------------

How do I avoid such dependency error from my custom DotNet variable (Dll Variable) ?

regards,

Subrata Bauri

*This post is locked for comments

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: How to avoid 3rd Party library dependency error in my custom DotNet Variable

    You can't do that since there is a dependency you need all of those in the folder.

  • subrata.bauri Profile Picture
    subrata.bauri 1,112 on at
    RE: How to avoid 3rd Party library dependency error in my custom DotNet Variable

    Thanks for your reply. I don't want to put those dlls (custom dll & 3rd party dll ) in the add-in folder. I want to put the custom dll only to serve the purpose. How to achieve that ?

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: How to avoid 3rd Party library dependency error in my custom DotNet Variable

    Did you copy those dlls into the add-in folder?

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

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans