Hey, ive been following the 'Getting started with the IAS Toolkit' guide as an alternative from UIBuilder. However, when publishing the sample code I get this error.
System.ServiceModel.FaultException:
Message="(Code: 0x80131509) Skyline.DataMiner.Net.Exceptions.DataMinerException: The file C:\Skyline DataMiner\AppPackages\Uploads\DIS_AppPackage_DEV_v1.0.1_379241be48aa4692aed50d673144ee72\DIS_AppPackage_DEV.dmapp could not be unzipped. ---> System.InvalidOperationException: The file C:\Skyline DataMiner\AppPackages\Uploads\DIS_AppPackage_DEV_v1.0.1_379241be48aa4692aed50d673144ee72\DIS_AppPackage_DEV.dmapp could not be unzipped. ---> System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Skyline DataMiner\AppPackages\Installed\DIS_AppPackage_DEV.1.0.1\AppInstallContent\Assemblies\ProtocolScripts\DllImport\skyline.dataminer.utils.interactiveautomationscripttoolkit\6.1.0\lib\net462\Skyline.DataMiner.Utils.InteractiveAutomationScriptToolkit.dll'.
The IDE im using is in a remote desktop, is this something to do with file permissions?
Cheers!
Hi Donnell,
At first sight this does not look like a permission issue but rather a problem with long path support in both Windows and DataMiner. The path in question here exceeds the MAX_PATH limit of 260 characters. Support for long paths in AppPackages has been added in DataMiner version 10.1.0 CU19 and higher. Can you confirm you are on such a version? If so, the next thing to check is whether the support in Windows has been activated correctly. You can check the registry key on the DataMiner Agent from a command prompt:
reg query "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem" /v "LongPathsEnabled"
This should return value 0x1. Also note that Windows Server 2012 R2 does not support the LongPathsEnabled option, this requires Windows Server 2016 or newer.
Thanks for the reply Bert, i double checked the DMA version and everything seems to already be up to date. i am currently on v10.2.4.0-11673 and the remote desktop is on Windows Server 2019. It also looks like i do have LongPathsEnabled enabled too.
As Thomas pointed out, support was added in the 10.2.10 feature release (and backported into 10.2 / 10.1 main releases). So 10.2.4 does not have the necessary support for long paths.
Ahh I see, thanks for clarifying.
Support for long paths was also added for DataMiner feature release version 10.2.10 and DataMiner Main release version 10.2.0 CU7 and up.