Greetings. I need your help. I wrote C# windows forms application, and it works fine on PC with Windows 10 and Visual Studio 2022. Now I copied entire Kmotion 5.0.7 folder (where my project is also located) and pasted it on laptop which also has Windows 10 and Visual Studio 2022. Now when I try to
Code: Select all
_Controller = new KMotion_dotNet.KM_Controller();
I have an exception
Code: Select all
KMotion_dotNet.DMException: 'Dll Not Found Exception thrown : Caller - [KMotion_dotNet.KM_Controller] :: Member - [KM_Controller]'
. In details of my exception I see:
Code: Select all
InnerException {"Unable to load DLL 'KMotion_dotNet_Interop.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)"} System.Exception {System.DllNotFoundException}
In solution explorer -> References, the path to Kmotion_dotNet seems correct. (the reference is set to KMotion5.0.7\KMotion\Debug and on PC it works fine. When I tried to add reference to KMotion_dotNet_Interop.dll it said reference could not be added. Tried the same on PC and it also said it could not be added, yet on PC all works fine. Can you give me an advice??