问题 aspNetCore 使用验证码,unbuntu部署报错
ystem.TypeInitializationException: The type initializer for 'Gdip' threw an exception.</br> ---> System.DllNotFoundException: Unable to load shared library 'libgdiplus' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibgdiplus: cannot open shared object file: No such file or directory</br> at System.Drawing.SafeNativeMethods.Gdip.GdiplusStartup(IntPtr& token, StartupInput& input, StartupOutput& output)</br> at System.Drawing.SafeNativeMethods.Gdip..cctor()</br> --- End of inner exception stack trace ---</br> at System.Drawing.SafeNativeMethods.Gdip.GdipCreateBitmapFromScan0(Int32 width, Int32 height, Int32 stride, Int32 format, HandleRef scan0, IntPtr& bitmap)</br> at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)</br>
处理问题
1、apt-get install libgdiplus
2、cd /usr/lib
3、ln -s libgdiplus.so gdiplus.dll