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
    • Kanban workshop
    • 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
  • Support
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

How to resolve System.MissingMethodException

Solved2.32K views13th July 2022DLL
0
Stijn Declerck [SLC] [DevOps Advocate]800 12th July 2022 1 Comment

Hi all,

I keep getting the error below in the logging of a connector. I suspect the problem is in the loading of the referenced dll, but I can't figure out how to resolve it.

2022/07/12 14:14:08.301|SLManagedScripting.exe|ManagedInterop|CRU|-1|5|System.MissingMethodException: Method not found: 'Skyline.DataMiner.Library.Common.DmsElementId Meinberg.Nms.IAC.Communication.Generic.ElementInfoEvent.get_DmsElementId()'.
Stijn Declerck [SLC] [DevOps Advocate] Selected answer as best 13th July 2022
Stijn Declerck [SLC] [DevOps Advocate] commented 12th July 2022

Hi Jens, I’m working with Nuget packages

4 Answers

  • Active
  • Voted
  • Newest
  • Oldest
4
Avatar photo
Jan Staelens [SLC] [DevOps Advocate]889 Posted 13th July 2022 0 Comments

The cause:

The problem is that the Meinberg NuGet has a dependency on version 1.2.2.1 of the class library but in your solution (that uses meinberg nuget) you're installing the 1.2.2.4 nuget of the class library.

This means your QAction will have both dll's in the dllimport attribute and DataMiner will currently load up both version 1.2.2.1 and 1.2.2.4 of that library and the data returned from meinberg will expect the DmsElementId class of 1.1.2.1 but find 1.1.2.4 which causes errors.

The solution:

To fix this, you'll need to make sure all your libraries and solutions have a dependency on the same version of class library.

More details:

https://docs.microsoft.com/en-us/dotnet/framework/configure-apps/redirect-assembly-versions

For normal programs during compilation it will perform something called unification where a automatically generated bindingredirect is added to a file next to the .exe. The binding redirect will say that any request at runtime to a method inside class library 1.2.2.1 should use 1.2.2.4 instead. Within DataMiner it's not possible to add that binding redirect because SLManagedScripting is a single process shared between all protocols and QActions. So any bindingredirect would impact all the protocol QActions.

Instead of unification, we use parallel loading where both versions of the assembly get loaded. This works between QActions and protocols, but as shown here it can cause strange behavior if multiple versions of the same assembly are needed in the same protocol.

We're brainstorming options to split up SLManagedScripting and protocols in general into more modular 'single' programs. That would also help fix this issue and allow us to add bindingredirects and use unification.

Stijn Declerck [SLC] [DevOps Advocate] Selected answer as best 13th July 2022
You are viewing 1 out of 4 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