Hi Dojo,
After upgrading our DMAs from version 10.4.0-15151 to 10.5.0-16515, an Automation script that was previously working started failing with System.MissingMethodException: Method not found.
The script has the following main using statements:
using Skyline.DataMiner.Automation;
using Skyline.DataMiner.CommunityLibrary.Netinsight.Nimbra;
using Skyline.DataMiner.Core.DataMinerSystem.Automation;
using Skyline.DataMiner.Core.DataMinerSystem.Common;
using Skyline.DataMiner.DeveloperCommunityLibrary.InteractiveAutomationToolkit;
DLLs referenced in the script under the Advanced tab:
C:\Skyline DataMiner\ProtocolScripts\DllImport\newtonsoft.json\13.0.3\lib\net45\Newtonsoft.Json.dll
C:\Skyline DataMiner\ProtocolScripts\DllImport\skyline.dataminer.core.dataminersystem.common\1.1.0.5\lib\net462\Skyline.DataMiner.Core.DataMinerSystem.Common.dll
C:\Skyline DataMiner\ProtocolScripts\DllImport\skyline.dataminer.core.dataminersystem.automation\1.1.0.3\lib\net462\Skyline.DataMiner.Core.DataMinerSystem.Automation.dll
C:\Skyline DataMiner\ProtocolScripts\DllImport\slc.clib.iastoolkit\1.0.7.2\lib\net462\SLC.CLib.IASToolkit.dll
C:\Skyline DataMiner\ProtocolScripts\DllImport\slc.clib.netinsight.nimbra\1.0.0.6\lib\net462\SLC.CLib.Netinsight.Nimbra.dll
The script "Validate" in Cube shows “No errors”, but when I execute it I get the following error:
System.MissingMethodException: Method not found:
'Skyline.DataMiner.Core.DataMinerSystem.Common.IDms
Skyline.DataMiner.Core.DataMinerSystem.Automation.EngineExtensions.GetDms
(Skyline.DataMiner.Automation.Engine)'
at Script.Run(Engine engine)
In the code I am using, for example:
public void Run(Engine engine)
{
IDms dms = engine.GetDms();
...
}
On 10.4.0 this worked without any issues. The error only started appearing after the upgrade to 10.5.0-16515.
I would like to know if you can provide any guidance on what else I should check, or what the correct setup of DLL references/usage should be for this scenario in 10.5.
Thanks!
Hi Daniel,
In the referenced DLLs there is version mismatch between the skyline.dataminer.core.dataminersystem.common (1.1.0.5) and skyline.dataminer.core.dataminersystem.automation (1.1.0.3). Can you align these versions and test whether is solves the issue? You might need to restart the Agent to get a clean SLAutomation.

Hi Pedro,
That was exactly the issue. After aligning the DLL versions, the script started working again straight away, no Agent restart needed.
Thanks a lot for your help and quick response!