Linux杂谈

Linux部署.NET 项目报错Unable to load D

2022-04-02  本文已影响0人  老中医167788

详细错误

System.TypeInitializationException: The type initializer for 'Gdip' threw an exception.
       ---> System.DllNotFoundException: Unable to load DLL 'libgdiplus': The specified module could not be found.
         at System.Runtime.InteropServices.FunctionWrapper`1.get_Delegate()
         at System.Drawing.SafeNativeMethods.Gdip.GdiplusStartup(IntPtr& token, StartupInput& input, StartupOutput& output)
         at System.Drawing.SafeNativeMethods.Gdip..cctor()

解决方案

ubuntu:

apt install libgdiplus

center-os:

yum install libgdiplus-devel
上一篇下一篇

猜你喜欢

热点阅读