Dependency problem with dotnet Datalayer Dlls

When i use the dotnet run command, the Project can be executed. But when i want to debug i get this Errormessage:

System.DllNotFoundException: "Unable to load DLL 'runtimes\win-x64\native\comm_datalayer.dll' or one of its dependencies:The specified module was not found. (0x8007007E)"

Thats weird, cause this DLL is in the right Folder.

Best reply by nickH

Hello, 

Please keep in mind that our supported and recommended development environment is a ubuntu 20 environment (see Setup Overview). I would recommend you to use the ctrlX WORKS integrated App Build Environment (see Docs). All the dependencies you need are automatically installed here or can be installed easily with the install scripts. This feature is integrated into ctrlX WORKS since Version 1.14. 

However if you want to debug the .Net samples in VisualStudio, all libraries which are referenced by 'comm_datalayer.dll' must be present on your windows system. If any required library is not installed on windows the library 'comm_datalayer.dll' could not be loaded and an exception like you got is thrown. 

There are some tools which can determine the dependency which are not present (e.g. dumpbin). One dependency which is missing a lot is the OpenSSL library Win64 OpenSSL v1.1.1. This library can be downloaded and installed for windows from the internet. I would suggest you to install this library at your windows system and try to debug again. 

Best regards, 

Nick  

View original
3 replies