Or Tools Sat Example not working within C# forms app

2

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.

c#
or-tools
asked on Stack Overflow Feb 13, 2020 by anonymous_ • edited Feb 13, 2020 by Adrian Mole

1 Answer

0

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

https://aka.ms/vs/16/release/VC_redist.x64.exe

(mentioned here)

answered on Stack Overflow Aug 31, 2020 by dashnick

User contributions licensed under CC BY-SA 3.0