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
    • 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
    • YouTube Videos
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Agility
      • Learn more about 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)
      • Book your Agile Fundamentals training
      • Book you Kanban workshop
    • >> Go to DataMiner Docs
  • DevOps
    • About the DevOps Program
    • Sign up for the DevOps Program
    • DataMiner DevOps Support
    • Feature Suggestions
  • Downloads
  • Swag Shop
  • PARTNERS
    • Business Partners
    • Technology Partners
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • >> Go to dataminer.services

Ad-Hoc datasource assembly load issue

Solved130 views2 days agoadhoc Missing Assembly Reference SRM
2
Gerwin van der Kamp [DevOps Enabler]3.53K 2 days ago 0 Comments

Hi,

I've got another assembly load issue with an adhoc datasource, we are running 10.5.7. in the adhoc datasource i include an custom nuget which handles dom lookups etc. Part of this nuget is that when linking to an resource it will fetch that resource so we can access that directly. I think that that is where the issue lies since i can do all thing with the nuget until i try to fetch an resources name.

In the nuget we reference Skyline.DataMiner.Core.SRM version 2.0.1 however when i look in error log from the adhoc datasource i do get the following error:

Error in implementation of GetNextPage
System.IO.FileNotFoundException: Could not load file or assembly 'SLManagedAutomation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
File name: 'SLManagedAutomation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
at Skyline.DataMiner.Core.SRM.SrmManagers.get_Default()
at RBM.DataMiner.DOM.Converters.SectionExtensions.GetValue(Section section, FieldDescriptorID fieldDescriptorID, Func`2 messageHandler, Resource& field)
at RBMTielines.Get_nodes()
at RBMTielines.GetNextPage(GetNextPageInputArgs args)
at GQI.ExtensionsWorker.Automation.Extensions.DataSourceWrapper.GetNextPage(IGQIDataSource implementation)

Looking in the dmapp that got created this SRM nuget is not included so i assume it will be included by SRM install itself. 

How can i fix this?

Gerwin van der Kamp [DevOps Enabler] Selected answer as best 2 days ago

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
2
Tom Waterbley [SLC] [DevOps Catalyst]9.16K Posted 2 days ago 1 Comment

Hi Gerwin,

The issue is that 'SrmManagers.Default' attaches to the static 'Engine.SLNet' connection, which is only available in an automation script. In an ad-hoc data source, it should use "args.DMS.GetConnection()" instead.

You can achieve this using a small helper class that acts as a bridge between the data source connection and the SRM API. An example of such class is available here: https://gist.github.com/TomW-Skyline/82372eca4dc2e58b78f292f4822515d8

Usage example:

public OnInitOutputArgs OnInit(OnInitInputArgs args)
{
_srmManagers = new GqiSrmManagers(args.DMS.GetConnection(), args.Logger);
...
}

The properties of _srmManagers are the same as SrmManagers.Default.

Let me know if you need any further assistance.

Gerwin van der Kamp [DevOps Enabler] Selected answer as best 2 days ago
Gerwin van der Kamp [DevOps Enabler] commented 2 days ago

Thanks i'll have a look and see if how i need to adapt this to work with our internal nuget 🙂

1
Sebastiaan Dumoulein [SLC] [DevOps Enabler]14.01K Posted 2 days ago 1 Comment

Hi Gerwin,

I believe SLManagedAutomation.dll has some fixed 32-bit dependencies which do not work in the 64-bit GQI process.

It's recommended to split off this dependency specifically for automation scripts: https://docs.dataminer.services/develop/devguide/GQI_Extensions/GQI_Extensions_Best_Practices.html#do-not-use-skylinedataminerautomation

Gerwin van der Kamp [DevOps Enabler] Posted new comment 2 days ago
Gerwin van der Kamp [DevOps Enabler] commented 2 days ago

How can we get the SRM information within an adhoc datasource then?

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