Or Tools Sat Example not working within C# forms app


I have been able to run an example version of the scheduling program from GitHub. However, as soon as I run it in Windows forms, I get the following error:

System.TypeInitializationException: 'The type initializer for 'Google.OrTools.Util.operations_research_utilPINVOKE' threw an exception.' DllNotFoundException: Unable to load DLL 'google-ortools-native': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

I have tried on another PC with a new install of the package.

asked on Stack Overflow Feb 13, 2020 by anonymous_ • edited Feb 13, 2020 by Adrian Mole

1 Answer


As Laurent mentioned, you need to have Visual C++ Redistributables installed:


(mentioned here)

answered on Stack Overflow Aug 31, 2020 by dashnick

User contributions licensed under CC BY-SA 3.0