Hi,
I am trying to start using the IAS Toolkit and have followed the instructions in accordance with the link below.
https://docs.dataminer.services/develop/devguide/Automation/Howto/Getting_Started_with_the_IAS_Toolkit.html
It works fine in DIS. The Skyline.DataMiner.Utils.InteractiveAutomationScriptToolkit is installed and can be used from the script. But when publishing to the server and run the script from Dataminer Cube it complains that it is missing a reference. Reference Utils is not found.
What am I missing?
It seems as if it has problems finding DIS packages. See output below.
2023/07/13 06:40:23.513|Trying to connect to DMA with hostname ‘192.168.55.100’ and username ‘aca_obp’!
2023/07/13 06:40:23.636|Starting new SLDisDmaComm service process
2023/07/13 06:40:24.145|> Process started: PID 14204
2023/07/13 06:40:24.203|> Guid: 14d87c4a-b3cd-40be-bf66-617e86c83a13
2023/07/13 06:40:24.204|> Host: 192.168.55.100
2023/07/13 06:40:24.220|> Starting service
2023/07/13 06:40:24.505|> net.pipe://127.0.0.1/14d87c4a-b3cd-40be-bf66-617e86c83a13/SLDisDmaComm
2023/07/13 06:40:24.725|> Service is started!
2023/07/13 06:40:24.726|SLDisDmaComm service PID: 14204
2023/07/13 06:40:24.726|Connecting to SLDisDmaComm service process
2023/07/13 06:40:24.736|> Parent process: devenv (10548)
2023/07/13 06:40:25.011|Connected to SLDisDmaComm service process!
2023/07/13 06:40:25.172|> Executing RegisterCallback
2023/07/13 06:40:25.232|> Executing Connect (hostname: 192.168.55.100, username: aca_obp)
2023/07/13 06:40:25.353|> Resolving assembly: Grpc.Net.Client.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=d754f35622e28bad
2023/07/13 06:40:25.353|> Trying to load assembly via service: Grpc.Net.Client.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=d754f35622e28bad
2023/07/13 06:40:25.353|> Get path via service…
2023/07/13 06:40:25.478|> Path:
2023/07/13 06:40:25.478|> Trying to load assembly from package: Grpc.Net.Client.Web
2023/07/13 06:40:25.479|> Couldn’t find file in DIS package.
2023/07/13 06:40:25.480|> Couldn’t load assembly.
2023/07/13 06:40:25.991|> Resolving assembly: SLLoggerUtil, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9789b1eac4cb1b12
2023/07/13 06:40:25.992|> Trying to load assembly via service: SLLoggerUtil, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9789b1eac4cb1b12
2023/07/13 06:40:25.992|> Get path via service…
2023/07/13 06:40:25.998|> Path:
2023/07/13 06:40:25.998|> Trying to load assembly from package: SLLoggerUtil
2023/07/13 06:40:25.998|> Couldn’t find file in DIS package.
2023/07/13 06:40:25.998|> Couldn’t load assembly.
2023/07/13 06:40:26.696|> Resolving assembly: Skyline.DataMiner.Storage.Types, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9789b1eac4cb1b12
2023/07/13 06:40:26.697|> Trying to load assembly via service: Skyline.DataMiner.Storage.Types, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9789b1eac4cb1b12
2023/07/13 06:40:26.697|> Get path via service…
2023/07/13 06:40:26.702|> Path:
2023/07/13 06:40:26.703|> Trying to load assembly from package: Skyline.DataMiner.Storage.Types
2023/07/13 06:40:26.703|> Couldn’t find file in DIS package.
2023/07/13 06:40:26.703|> Couldn’t load assembly.
2023/07/13 06:40:26.798|> Resolving assembly: ICSharpCode.SharpZipLib, Version=1.3.3.11, Culture=neutral, PublicKeyToken=1b03e6acf1164f73
2023/07/13 06:40:26.798|> Trying to load assembly via service: ICSharpCode.SharpZipLib, Version=1.3.3.11, Culture=neutral, PublicKeyToken=1b03e6acf1164f73
2023/07/13 06:40:26.799|> Get path via service…
2023/07/13 06:40:26.804|> Path:
2023/07/13 06:40:26.804|> Trying to load assembly from package: ICSharpCode.SharpZipLib
2023/07/13 06:40:26.805|> Try to load ICSharpCode.SharpZipLib from path ‘C:USERSANNACARLSSONAPPDATALOCALMICROSOFTVISUALSTUDIO16.0_2ABC7987EXTENSIONSD1DNNTWG.SEISLDisDMACommICSharpCode.SharpZipLib.dll’.
2023/07/13 06:40:26.824|> Successfully loaded ICSharpCode.SharpZipLib!
2023/07/13 06:40:27.339|> Resolving assembly: SLProtoBufLibrary.XmlSerializers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9789b1eac4cb1b12
2023/07/13 06:40:27.340|> Trying to load assembly via service: SLProtoBufLibrary.XmlSerializers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9789b1eac4cb1b12
2023/07/13 06:40:27.340|> Get path via service…
2023/07/13 06:40:27.346|> Path:
2023/07/13 06:40:27.346|> Trying to load assembly from package: SLProtoBufLibrary.XmlSerializers
2023/07/13 06:40:27.346|> Couldn’t find file in DIS package.
2023/07/13 06:40:27.346|> Couldn’t load assembly.
2023/07/13 06:40:27.494|> Resolving assembly: Skyline.DataMiner.Spi, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9789b1eac4cb1b12
2023/07/13 06:40:27.494|> Trying to load assembly via service: Skyline.DataMiner.Spi, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9789b1eac4cb1b12
2023/07/13 06:40:27.494|> Get path via service…
2023/07/13 06:40:27.500|> Path:
2023/07/13 06:40:27.500|> Trying to load assembly from package: Skyline.DataMiner.Spi
2023/07/13 06:40:27.500|> Couldn’t find file in DIS package.
2023/07/13 06:40:27.500|> Couldn’t load assembly.
2023/07/13 06:40:27.626|> Resolving assembly: Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed
2023/07/13 06:40:27.627|> Trying to load assembly via service: Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed
2023/07/13 06:40:27.627|> Get path via service…
2023/07/13 06:40:27.627|> Path: C:Program Files (x86)Microsoft Visual Studio2019CommunityCommon7IDEPrivateAssembliesNewtonsoft.Json.12.0.0.2Newtonsoft.Json.dll
2023/07/13 06:40:27.627|> Loading…
2023/07/13 06:40:27.633|> Successfully loaded Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed!
2023/07/13 06:40:28.723|> Resolving assembly: SLAPITypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9789b1eac4cb1b12
2023/07/13 06:40:28.723|> Trying to load assembly via service: SLAPITypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9789b1eac4cb1b12
2023/07/13 06:40:28.724|> Get path via service…
2023/07/13 06:40:28.730|> Path:
2023/07/13 06:40:28.730|> Trying to load assembly from package: SLAPITypes
2023/07/13 06:40:28.730|> Couldn’t find file in DIS package.
2023/07/13 06:40:28.730|> Couldn’t load assembly.
2023/07/13 06:40:28.753|> Resolving assembly: SLAPITypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9789b1eac4cb1b12
2023/07/13 06:40:28.753|> Trying to load assembly via service: SLAPITypes, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9789b1eac4cb1b12
2023/07/13 06:40:28.753|> Get path via service…
2023/07/13 06:40:28.753|> Path:
2023/07/13 06:40:28.753|> Trying to load assembly from package: SLAPITypes
2023/07/13 06:40:28.753|> Couldn’t find file in DIS package.
2023/07/13 06:40:28.753|> Couldn’t load assembly.
2023/07/13 06:40:28.923|> Resolving assembly: SLMediationSnippets, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9789b1eac4cb1b12
2023/07/13 06:40:28.924|> Trying to load assembly via service: SLMediationSnippets, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9789b1eac4cb1b12
2023/07/13 06:40:28.924|> Get path via service…
2023/07/13 06:40:28.930|> Path:
2023/07/13 06:40:28.930|> Trying to load assembly from package: SLMediationSnippets
2023/07/13 06:40:28.930|> Couldn’t find file in DIS package.
2023/07/13 06:40:28.930|> Couldn’t load assembly.
2023/07/13 06:40:28.949|> Resolving assembly: SLMediationSnippets, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9789b1eac4cb1b12
2023/07/13 06:40:28.949|> Trying to load assembly via service: SLMediationSnippets, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9789b1eac4cb1b12
2023/07/13 06:40:28.949|> Get path via service…
2023/07/13 06:40:28.949|> Path:
2023/07/13 06:40:28.949|> Trying to load assembly from package: SLMediationSnippets
2023/07/13 06:40:28.949|> Couldn’t find file in DIS package.
2023/07/13 06:40:28.950|> Couldn’t load assembly.
2023/07/13 06:40:28.959|> Resolving assembly: SLEndpointTool, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9789b1eac4cb1b12
2023/07/13 06:40:28.959|> Trying to load assembly via service: SLEndpointTool, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9789b1eac4cb1b12
2023/07/13 06:40:28.960|> Get path via service…
2023/07/13 06:40:28.966|> Path:
2023/07/13 06:40:28.966|> Trying to load assembly from package: SLEndpointTool
2023/07/13 06:40:28.966|> Couldn’t find file in DIS package.
2023/07/13 06:40:28.966|> Couldn’t load assembly.
2023/07/13 06:40:29.068|> Resolving assembly: SLEndpointTool, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9789b1eac4cb1b12
2023/07/13 06:40:29.069|> Trying to load assembly via service: SLEndpointTool, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9789b1eac4cb1b12
2023/07/13 06:40:29.069|> Get path via service…
2023/07/13 06:40:29.069|> Path:
2023/07/13 06:40:29.070|> Trying to load assembly from package: SLEndpointTool
2023/07/13 06:40:29.070|> Couldn’t find file in DIS package.
2023/07/13 06:40:29.070|> Couldn’t load assembly.
2023/07/13 06:40:29.763|> Resolving assembly: SLNet.Security, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9789b1eac4cb1b12
2023/07/13 06:40:29.764|> Trying to load assembly via service: SLNet.Security, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9789b1eac4cb1b12
2023/07/13 06:40:29.764|> Get path via service…
2023/07/13 06:40:29.771|> Path:
2023/07/13 06:40:29.771|> Trying to load assembly from package: SLNet.Security
2023/07/13 06:40:29.772|> Couldn’t find file in DIS package.
2023/07/13 06:40:29.772|> Couldn’t load assembly.
2023/07/13 06:40:31.188|> Finished executing Connect (hostname: 192.168.55.100, username: aca_obp)
2023/07/13 06:40:31.189|> Connection Type: RemotingConnection
2023/07/13 06:40:31.207|> Executing GetDmaInfo
2023/07/13 06:40:31.807|> Finished executing GetDmaInfo
2023/07/13 06:40:31.833|> Executing GetAutomationScripts
2023/07/13 06:40:37.262|> Finished executing GetAutomationScripts
2023/07/13 06:40:37.276|> Executing SubscribeForChanges
2023/07/13 06:40:37.316|> Finished executing SubscribeForChanges
2023/07/13 06:40:37.316|Connected to DMA!
2023/07/13 06:40:37.324|> Executing UploadAutomationScript (name: Configure User Automation)
2023/07/13 06:40:38.563|> Finished executing UploadAutomationScript
2023/07/13 06:41:07.595|> Executing GetAutomationScripts
2023/07/13 06:41:13.279|> Finished executing GetAutomationScripts
It should have these lines but your one is different.
2023/07/14 11:10:05.226|Connected to DMA!
2023/07/14 11:10:08.512|> Executing UploadAppPackage (name: DIS_AppPackage_DEV, version: 1.0.1)
2023/07/14 11:10:08.644|> Start processing dmapp…
2023/07/14 11:10:22.368|> Executing GetAutomationScripts
Can you show the xml file?
Solved it by adding the DLL references manually to the script and copied the packages to the server. Now it works.
Please read my question below.