Description
Results BadImageFormatException when creating image using SkiaSharp library in ASP.NET Web application.
Code
When creating image using in SKBitmap constructor
public SKBitmap(int width, int height, bool isOpaque = false);
Exeption detail
[BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)]
SkiaSharp.SkiaApi.sk_colortype_get_default_8888() +0
SkiaSharp.SKImageInfo..cctor() +7
[TypeInitializationException: The type initializer for 'SkiaSharp.SKImageInfo' threw an exception.]
SkiaSharp.SKBitmap..ctor(Int32 width, Int32 height, Boolean isOpaque) +38
Basic Information
- Version with issue: 1.60
- IDE: Visual Studio 2017