

Mono-INFO: DllImport error loading library 'libgdiplus.dll: cannot open shared object file: No such file or directory'. Mono-INFO: DllImport loading: 'libgdiplus.dll'. Mono-INFO: DllImport error loading library './libgdiplus.dll: cannot open shared object file: No such file or directory'. Mono-INFO: DllImport loading library: './libgdiplus.dll'. Mono-INFO: DllImport error loading library: 'libgdiplus.dll: cannot open shared object file: No such file or directory'. Mono-INFO: DllImport loading location: 'libgdiplus.dll'. Mono-INFO: DllImport error loading library 'gdiplus.so: cannot open shared object file: No such file or directory'. Mono-INFO: DllImport error loading library './libgdiplus.so: cannot open shared object file: No such file or directory'. Mono-INFO: DllImport loading library: './libgdiplus.so'. Mono-INFO: DllImport error loading library: 'libgdiplus.so: cannot open shared object file: No such file or directory'. Mono-INFO: DllImport loading location: 'libgdiplus.so'. Mono-INFO: DllImport error loading library 'gdiplus.dll: cannot open shared object file: No such file or directory'. Mono-INFO: DllImport loading: 'gdiplus.dll'. Mono-INFO: DllImport error loading library './: cannot open shared object file: No such file or directory'. Mono-INFO: DllImport loading library: './'.

Mono-INFO: DllImport error loading library: ': cannot open shared object file: No such file or directory'. Mono-INFO: DllImport loading location: ''. Mono-INFO: DllImport attempting to load: 'gdiplus.dll'. (Substitute “.so” with “dylib” for macOS) Troubleshooting DllNotFoundExceptionsĪ good first step is to set up the log level so you can see what file names mono is attempting to look for: $ MONO_LOG_LEVEL=debug mono GdiExample.exe These names are mapped to linux library names using DllMaps. NET Framework, mono uses the same library names as windows. I am using Linux or macOS, why is mono looking for libraries with “win32” in their name and ending with “dll” instead of “so”/”dylib”?

Background Information & Possible Questions This error means that mono was unable to locate a library that one of the classes you are trying to use needs. These are generally the common reactions to such an Exception.įortunately there is hope. In (wrapper remoting-invoke-with-check) () In ()- End of inner exception stack trace. In (wrapper managed-to-native) :GdiplusStartup (ulong&,&,&) Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for -> System.DllNotFoundException: gdiplus.dll So you are enjoying your day developing with mono when all of a sudden you run into a problem: $ mono GdiExample.exe
