Show / Hide Table of Contents

    MIPCL throws System.TypeInitializationException

    When you try to use MIPCL on a machine that is not configured for developing C++ applications, you might encounter the following Exception:

    Unhandled Exception: System.TypeInitializationException: The type initializer for 
    'OPTANO.Modeling.Optimization.Solver.MipCL213.WrapperCsharp.MipCL213WrapperCppPINVOKE' threw an exception. 
    ---> System.TypeInitializationException: The type initializer for 'SWIGExceptionHelper' threw an exception. 
    ---> System.DllNotFoundException: Unable to load DLL 'MipCL213WrapperCpp': The specified module could not be found.
    (Exception from HRESULT: 0x8007007E)
    

    In order to fix this problem, you need to provide the following DLLs:

    • ucrtbased.dll
    • vcruntime140d.dll

    They can be obtained by installing the Visual C++ Redistributable for Visual Studio 2015, or by downloading them from a (trustworthy) source of your choice.

    To make sure that your program can be executed on non-development machines, e.g. when deploying to your customers, it is suggested to explicitly add both DLLs as a resource to your project and set them to "Copy Always".
    After installing the VC++ Redist Package, both DLLs should be located in "C:\Windows\System32\".

    Back to top Copyright © OPTANO GmbH generated with DocFX
    Privacy Policy | Impressum – Legal Notice