I have C# code using aspose.imaging version 23.5 running in a linux container that works in asp.net 6, but not asp.net 8.
It does work on my Windows Desktop with dotnet 8.
It reports it’s unable to find libkernel32.dll.so or libkernel32.dll in a number of different paths.
Are there known fixes for this issue?
The error is:
Unhandled Exception: Aspose.Imaging.CoreExceptions.ImageLoadException: Image loading failed.
—> Aspose.Imaging.CoreExceptions.ImageLoadException: Unable to read file.
Exception: Unable to load shared library ‘kernel32.dll’ or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you’re using glibc, consider setting the LD_DEBUG environment variable:
/app/runtimes/linux-x64/native/kernel32.dll.so: cannot open shared object file: No such file or directory
/usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.10/kernel32.dll.so: cannot open shared object file: No such file or directory
/app/kernel32.dll.so: cannot open shared object file: No such file or directory
/app/runtimes/linux-x64/native/libkernel32.dll.so: cannot open shared object file: No such file or directory
/usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.10/libkernel32.dll.so: cannot open shared object file: No such file or directory
/app/libkernel32.dll.so: cannot open shared object file: No such file or directory
/app/runtimes/linux-x64/native/kernel32.dll: cannot open shared object file: No such file or directory
/usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.10/kernel32.dll: cannot open shared object file: No such file or directory
/app/kernel32.dll: cannot open shared object file: No such file or directory
/app/runtimes/linux-x64/native/libkernel32.dll: cannot open shared object file: No such file or directory
/usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.10/libkernel32.dll: cannot open shared object file: No such file or directory
/app/libkernel32.dll: cannot open shared object file: No such file or directory