Fast Report Viewer and Blazor Webassemby
Hi,
i tried to run the viewer for blazor wasm with .net 8. but it doesnt run. i got an error.
I installed this Nuget packages:
FastReport.Blazor.Wasm.Demo 2025.2.1
---> System.TypeInitializationException: The type initializer for 'SkiaSharp.SKFontManager' threw an exception.
---> System.DllNotFoundException: libSkiaSharp
at SkiaSharp.SKFontManager..cctor()
After the error i added the Nuget:
SkiaSharp.Views.Blazor
SkiaSharp.NativeAssets.Web
Same error. I doesnt run. Then i tried this tutorial: https://www.fast-report.com/blogs/blazor-webassembly-manual
have someone a solution or an example project with net 8 and blazor wasm?
Thanks for help. Serkan
This discussion has been closed.
Comments
Hello!
The DllNotFoundException: libSkiaSharp in Blazor WebAssembly does not occur in FastReport.Blazor.Wasm.Demo itself, but rather when building without the native SkiaSharp WASM libraries or without the wasm-tools workload installed. Manually referencing SkiaSharp.NativeAssets.Web is not suitable; Blazor WASM requires SkiaSharp.NativeAssets.WebAssembly, which is statically linked into dotnet.native.wasm.