Skip to content

[BUG] Blazor Wasm : The type initializer for 'SkiaSharp.SKImageInfo' threw an exception #3224

Open
@tossnet

Description

@tossnet

Description

I can't find a solution to this problem on Blazor Webassembly (no problem on Blazor Server).

 The error was: The type initializer for 'SkiaSharp.SKImageInfo' threw an exception.
 ---> System.TypeInitializationException: The type initializer for 'SkiaSharp.SKImageInfo' threw an exception.
 ---> System.DllNotFoundException: libSkiaSharp
   at SkiaSharp.SKImageInfo..cctor()

Code

My code is on this repository: https://github.com/tossnet/Blazor-Captcha/tree/master/BlazorCaptcha

I use SkiaSharp in the projet "BlazorCaptcha" in the file Captcha.cs

and run the Blazor-Wasm-Captcha-Test project

Expected Behavior

No response

Actual Behavior

No response

Version of SkiaSharp

3.118.0-preview.2 (Next Preview)

Last Known Good Version of SkiaSharp

2.88.9 (Previous)

IDE / Editor

Visual Studio (Windows)

Platform / Operating System

Windows

Platform / Operating System Version

No response

Devices

No response

Relevant Screenshots

Image

Relevant Log Output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions