Skip to main content

Notifications

Microsoft Dynamics NAV forum
Suggested answer

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

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

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,640 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,640 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

Quick Links

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

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

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,522 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,441 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans