码迷,mamicode.com
首页 > 其他好文 > 详细

System.DllNotFoundException: Unable to load DLL 'libgdiplus': The specified module could not be found.

时间:2018-10-19 23:42:59      阅读:590      评论:0      收藏:0      [点我收藏+]

标签:func   nat   runtime   service   system   init   startup   dll   使用   

netcore 使用System.Drawing 出现如下错误:

Unhandled Exception: 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()
   --- End of inner exception stack trace ---
   at System.Drawing.SafeNativeMethods.Gdip.GdipLoadImageFromFile(String filename, IntPtr& image)
   at System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement)
   at System.Drawing.Image.FromFile(String filename)

 

  同样的问题 https://github.com/dotnet/corefx/issues/25157

       解决方法: https://q.cnblogs.com/q/103863/

System.DllNotFoundException: Unable to load DLL 'libgdiplus': The specified module could not be found.

标签:func   nat   runtime   service   system   init   startup   dll   使用   

原文地址:https://www.cnblogs.com/xiaoyu369/p/9819608.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!