亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

.NET Core使用System.Drawing.Common時找不到libgdiplus的問題

.NET Core使用System.Drawing.Common時找不到libgdiplus的問題

料青山看我應如是 2018-08-06 09:12:10
在 ASP.NET Core 中引用 System.Drawing.Common,在 Ubuntu 16.04 上運行時出現下面的錯誤: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.GdipLoadImageFromDelegate_linux(StreamGetHeaderDelegate getHeader, StreamGetBytesDelegate getBytes, StreamPutBytesDelegate putBytes, StreamSeekDelegate doSeek, StreamCloseDelegate close, StreamSizeDelegate size, IntPtr& image)    at System.Drawing.Image.InitFromStream(Stream stream)    at System.Drawing.Image.LoadFromStream(Stream stream, Boolean keepAlive)
查看完整描述

1 回答

  • 1 回答
  • 0 關注
  • 2597 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號