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

DIS importing DLLImports wrong?

Solved1.09K views6th July 2023dllimport exception Google method missing
5
Alex Johnson [SLC] [DevOps Advocate]836 20th April 2023 0 Comments

Hi all,

I’m trying to use 3rd party nugets, Google.Cloud.Monitoring.V3 and Google.Cloud.Storage, and I am getting the following error:

This is running on a console application just fine with the same nugets, however when I transfer the code to a driver, it breaks. When looking at the dllimports of the qaction in the xml, we will notice some duplicate dlls:

Unfortunately, removing those duplicates manually does not seem to work.

Since the actual dlls needed are there, it seems like this is an issue with the way DIS imports the dlls -> DataMiner is using the wrong dll version. Could these be imported incorrectly?

DIS Version: 2.41.1.7

DMA Version: (10.1.0.0-12267-CU20)

If you’d like more info/to test: Reach out to Joey V. Also, Google Cloud Compute Engine driver is on GIT. Read the commit notes for setup.

Thanks in advance,

Alex Johnson

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 6th July 2023

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
3
Pedro Debevere [SLC] [DevOps Enabler]1.80K Posted 24th April 2023 1 Comment

Hi Alex,

The implementation in DataMiner is different from a regular console application. This is because by default there is a single SLScripting process to execute the QAction code and therefore binding redirects cannot be used. The current design provides all versions of the assemblies used, where for one version the full path is provided (compile time) and for the other versions the folder path is provided (run time). More info can be found here.

We are currently investigating the cause of the exception in your driver.

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 6th July 2023
Pedro Debevere [SLC] [DevOps Enabler] commented 25th April 2023

You probably ran into one of the issues mentioned here: https://learn.microsoft.com/en-us/dotnet/framework/deployment/best-practices-for-assembly-loading#avoid_loading_multiple_versions. While in theory you could use a bindingRedirects on SLScripting to solve it, it would not be recommended as it might interfere with other protocols. (Side note: DIS currently also does not support NuGet packages that have runtime-specific DLLs included so if your NuGet packages make use of this this will not work). An alternative solution would be to create a process that implements the Cloud monitoring API with which the protocol would communicate.

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