.NET Core – gdiplus.dll not found in Linux
A few days ago there was an issue raised in my QrCoder project. It was reported that the code would not run under Linux, as the following error message would occur:
Unhandled Exception: System.TypeInitializationException: The type initializer for ‘System.Drawing.KnownColors’ threw an exception.
—> System.TypeInitializationException: The type initializer for ‘System.Drawing.GDIPlus’ threw an exception.
—> System.DllNotFoundException: Unable to load DLL ‘gdiplus.dll’: The specified module could not be found.
(Exception from HRESULT: 0x8007007E)
at System.Drawing.GDIPlus.GdiplusStartup(UInt64& token, GdiplusStartupInput& input,
[…]
However the error message had its origin not in my QrCoder, but in the interplay of the .NET core framework with the GDI Plus library. The .NET Core Framework tries to access “gdiplus.dll” when accessing “System.Drawing.GDIPlus”, which is simply not available on Linux.
First solution approach
First, ensure that GDI+ is installed at all. This can be done with the following shell command:
sudo apt-get install libgdiplus
If libgdiplus is installed, however, another important step is missing …
Link libgdiplus for .NET Core
Because the […]
I admit, the title is quite specific and will certainly appeal to only a small readership. But anyone who is facing the problem will be, like me, grateful for a solution.
Today there is again a software update. Since yesterday evening the new version 1.2.7.0 of the WordPress2Doc Tool is available for download. In addition to two bugfixes, further translations have been introduced. Thanks a lot to the community support!
The one or the other may have noticed it already – code-bude.net is running with a new design recently. The theme change was on my to-do list for more than two years, but I was scared to switch the theme. Scared of ranking losses in Google or to shoot me the design because I had programmed the old Theme in non recommend ways. But now I have, however, done so.