docker 용기 실행. net core 3.0 의 구덩이 1: image 류 를 실행 할 수 없습니다 (원본 기술 공유 직접 측정)

전송:http://www.freetechs.cn/archives/70
docker 용기 실행. net core 3.0 구덩이 1: image 류 를 실행 할 수 없습니다.
. net core 3.0 프로젝트 에 image 클래스 를 사용 할 때 다음 과 같은 문제 가 발생 합 니 다.
System.TypeInitializationException: The type initializer for 'Gdip' threw an exception.
 ---> 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
   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 SmallWeb.Areas.OCR.Controllers.HomeController.Base64StrToImage(String base64Str) in C:\Users\sjn\source\repos\SmallWeb\SmallWeb\Areas\OCR\Controllers\HomeController.cs:line 256
   at SmallWeb.Areas.OCR.Controllers.HomeController.upload() in C:\Users\sjn\source\repos\SmallWeb\SmallWeb\Areas\OCR\Controllers\HomeController.cs:line 65

 
용기 에서 순서대로 명령 을 실행 하 다
apt-get update
apt-get install libgdiplus

좋은 웹페이지 즐겨찾기