@andrey.potapov no but I can reproduce the problem with that also.
New sample project: sampleProject.zip (1.7 KB)
I used the following docker image: Docker
Pull and start the container
docker pull centos:centos7
docker run --rm -ti -v /PATH/TO/THE/PROJECT/:/AsposeSlides centos:centos7
Install .Net 6 sdk and other dependencies in the container
yum update -y
rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm
yum -y install dotnet-sdk-6.0 freetype fontconfig
Build and run project
cd AsposeSlides/
dotnet build
dotnet run --project TestNewAsposeLibs
Error message
Unhandled exception. System.DllNotFoundException: Unable to load shared library ‘libaspose.slides.drawing.capi_x86_64_libstdcpp_libc2.23’ or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibaspose.slides.drawing.capi_x86_64_libstdcpp_libc2.23: cannot open shared object file: No such file or directory
at System.Runtime.InteropServices.NativeLibrary.LoadByName(String libraryName, QCallAssembly callingAssembly, Boolean hasDllImportSearchPathFlag, UInt32 dllImportSearchPathFlag, Boolean throwOnError)
at System.Runtime.InteropServices.NativeLibrary.LoadLibraryByName(String libraryName, Assembly assembly, Nullable1 searchPath, Boolean throwOnError) at System.Runtime.InteropServices.NativeLibrary.Load(String libraryName, Assembly assembly, Nullable
1 searchPath)
at �.(String , Assembly , Nullable`1 )
at System.Runtime.InteropServices.NativeLibrary.LoadLibraryCallbackStub(String libraryName, Assembly assembly, Boolean hasDllImportSearchPathFlags, UInt32 dllImportSearchPathFlags)
at �.a(Int32 a, Int32 b, Int32 c, IntPtr& d)
at System.Drawing.Bitmap…ctor(Int32 width, Int32 height, PixelFormat format)
at System.Drawing.Bitmap…ctor(Int32 width, Int32 height)
at Program.<$>g__CreateImage|0_0(Int32 widthInPixel, Int32 heightInPixel, Color fillColor) in /AsposeSlides/TestNewAsposeLibs/Program.cs:line 6
at Program.$(String[] args) in /AsposeSlides/TestNewAsposeLibs/Program.cs:line 15
Check libaspose.slides.drawing.capi_x86_64_libstdcpp_libc2.23
dependecies
ldd /AsposeSlides/TestNewAsposeLibs/bin/Debug/net6.0/libaspose.slides.drawing.capi_x86_64_libstdcpp_libc2.23.so
Result:
/AsposeSlides/TestNewAsposeLibs/bin/Debug/net6.0/libaspose.slides.drawing.capi_x86_64_libstdcpp_libc2.23.so: /lib64/libstdc++.so.6: version GLIBCXX_3.4.20' not found (required by /AsposeSlides/TestNewAsposeLibs/bin/Debug/net6.0/libaspose.slides.drawing.capi_x86_64_libstdcpp_libc2.23.so) /AsposeSlides/TestNewAsposeLibs/bin/Debug/net6.0/libaspose.slides.drawing.capi_x86_64_libstdcpp_libc2.23.so: /lib64/libstdc++.so.6: version
GLIBCXX_3.4.21’ not found (required by /AsposeSlides/TestNewAsposeLibs/bin/Debug/net6.0/libaspose.slides.drawing.capi_x86_64_libstdcpp_libc2.23.so)
/AsposeSlides/TestNewAsposeLibs/bin/Debug/net6.0/libaspose.slides.drawing.capi_x86_64_libstdcpp_libc2.23.so: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.22’ not found (required by /AsposeSlides/TestNewAsposeLibs/bin/Debug/net6.0/libaspose.slides.drawing.capi_x86_64_libstdcpp_libc2.23.so)
linux-vdso.so.1 => (0x00007fff407e8000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f0f1454e000)
librt.so.1 => /lib64/librt.so.1 (0x00007f0f14346000)
libfontconfig.so.1 => /lib64/libfontconfig.so.1 (0x00007f0f14104000)
libfreetype.so.6 => /lib64/libfreetype.so.6 (0x00007f0f13e45000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f0f13c29000)
libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f0f13921000)
libm.so.6 => /lib64/libm.so.6 (0x00007f0f1361f000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f0f13409000)
libc.so.6 => /lib64/libc.so.6 (0x00007f0f1303b000)
/lib64/ld-linux-x86-64.so.2 (0x00007f0f1881c000)
libexpat.so.1 => /lib64/libexpat.so.1 (0x00007f0f12e10000)
libuuid.so.1 => /lib64/libuuid.so.1 (0x00007f0f12c0b000)
libz.so.1 => /lib64/libz.so.1 (0x00007f0f129f5000)
libbz2.so.1 => /lib64/libbz2.so.1 (0x00007f0f127e5000)
libpng15.so.15 => /lib64/libpng15.so.15 (0x00007f0f125ba000)