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

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

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

(0) ShareShare
ReportReport
Posted on by 1,144

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

I have the same question (0)
  • Suggested answer
    Suresh Kulla Profile Picture
    50,241 Super User 2025 Season 2 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?

  • subrata.bauri Profile Picture
    1,144 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
    50,241 Super User 2025 Season 2 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.

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
Alexander Ermakov Profile Picture

Alexander Ermakov 2

#2
SC666 Profile Picture

SC666 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans