Hi Team,
we are facing issue in while uploading profile picture in Deployment server but in local development server , we are able to upload and edit the profile picture
Logs System.TypeInitializationException: The type initializer for 'SkiaSharp.SKData' threw an exception. ---> System.DllNotFoundException: Unable to load shared library 'libSkiaSharp' 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/libSkiaSharp.so: cannot open shared object file: No such file or directory /usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.15/libSkiaSharp.so: cannot open shared object file: No such file or directory /app/libSkiaSharp.so: cannot open shared object file: No such file or directory /app/runtimes/linux-x64/native/liblibSkiaSharp.so: cannot open shared object file: No such file or directory /usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.15/liblibSkiaSharp.so: cannot open shared object file: No such file or directory /app/liblibSkiaSharp.so: cannot open shared object file: No such file or directory /app/runtimes/linux-x64/native/libSkiaSharp: cannot open shared object file: No such file or directory /usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.15/libSkiaSharp: cannot open shared object file: No such file or directory /app/libSkiaSharp: cannot open shared object file: No such file or directory /app/runtimes/linux-x64/native/liblibSkiaSharp: cannot open shared object file: No such file or directory /usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.15/liblibSkiaSharp: cannot open shared object file: No such file or directory /app/liblibSkiaSharp: cannot open shared object file: No such file or directory
at SkiaSharp.SkiaApi.sk_data_new_empty() at SkiaSharp.SKData..cctor() --- End of inner exception stack trace --- at SkiaSharp.SKData.CreateCopy(Byte[] bytes) at SkiaSharp.SKImage.FromEncodedData(Byte[] data) at .Graphics.SkiaSharpImageValidator.Validate(Byte[] imageBytes) in /app/src/.Core/Graphics/IImageFormatValidator.cs:line 19 at ....
1 Answer(s)
-
0
@rameshrubix - We had this same issue. I am assuming you are deploying to a linux server. If so, add the "SkiaSharp.NativeAssets.Linux" nuget package to ProjectNameHere.Core project....should fix the issue.