Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

How to change where driver loads DLL?

Solved1.38K views19th May 2022DLL NuGet
1
Gabriel Borges [SLC] [DevOps Advocate]646 12th May 2022 0 Comments

Hello Dojo,

Currently, for the Generic Kafka Consumer, it is necessary to use the Confluent Kafka Nuget DLL's. We added the DLL's to the repo and they get added to the DLLImport directory when installing from the catalog, but the logs continue reporting that it is looking for the DLL's in the Dataminer/Files directory. Now that we are able to use Nugets, we switched over to using the actual Nuget package and the same issue arises, we manually copy over the DLL folders to the appropriate directory but it still points to the Files to read the DLL.

So is there a way to circumvent this and have the driver always look at the DLLImport directory?

We also can not manually copy the DLL's to the Files directory since two of the DLL's, msvcr120 and zlib, are always copied over when upgrading the DMA, which means we have to go back in and reupload them.

Gabriel Borges [SLC] [DevOps Advocate] Selected answer as best 19th May 2022

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
1
Davy Degrande [SLC] [DevOps Advocate]1.43K Posted 12th May 2022 5 Comments

Gabriel,

I would suggest to take a look at the following tag in your QActions:
dllImport attribute | DataMiner Docs

Also a small remark you say the DMA copies over msvcr120 and zlib this is because the core processes require those. If you go and manually change those you will get untested behavior and potentially corrupt core process behavior.

Gabriel Borges [SLC] [DevOps Advocate] Posted new comment 13th May 2022
Gabriel Borges [SLC] [DevOps Advocate] commented 12th May 2022

Thank you Davy, I looked over the documentation and when I manually add the necessary DLL’s in the dllImport tag I get the error “PE image doesn’t contain managed metadata” when it tries to load them. And what would the solution for the DLL’s that Dataminer needs be? They also seem like they are the same DLL’s, since they have the same size and modified date.

Davy Degrande [SLC] [DevOps Advocate] commented 13th May 2022

From what I found about the PE image, could it be you are trying to load unmanaged dll’s into the QActions? Saw some posts about nugget where the unmanaged dll’s where in the wrong folder. Something about the dll’s location. Unmanaged dll’s need to be in the native folder instead of the lib folder.

About the dll’s used by the core, if they are the same files I don’t see a problem then? Why would you need to copy them over again?

Gabriel Borges [SLC] [DevOps Advocate] commented 13th May 2022

From the little research I did on the error it seems like they are a native assembly for .NET, so for those DLL’s we would always need to manually copy them over? And I was mistaken, it’s 3 DLL’s that are replaced, 2 of them are exactly the same, but zlib.dll is smaller on the DM installation and seems to be the one that when replaced loads everything else properly. So could I be replacing it with an updated version and need to test to verify stability?

Davy Degrande [SLC] [DevOps Advocate] commented 13th May 2022

You should place the one that your QAction needs in another folder and load that one I believe that way your QAction will load the one needed and the core doesn’t needs to be revalidated.

Gabriel Borges [SLC] [DevOps Advocate] commented 13th May 2022

So that was my hopeful thought, since the rest I could copy over or leave alone, but it throws the same PE image error, even when creating a subfolder in the Files directory. Is there another method to do what you’re recommending?

You are viewing 1 out of 2 answers, click here to view all answers.
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin