FastReport icon indicating copy to clipboard operation
FastReport copied to clipboard

Container em Linux RadHat - .Net 8 - One or more errors occurred. (The type initializer for 'FastReport.Report' threw an exception.)

Open NunesEvandrus opened this issue 2 years ago • 5 comments

Describe the bug When I try to run FastReport in a RedHat Linux container I am getting the following error

{ "title": "Server Error", "status": 500, "detail": "One or more errors occurred. (The type initializer for 'FastReport.Report' threw an exception.)", "errors": null }

I'm using FastReport Community with .Net 8.0

Can anyone help?

NunesEvandrus avatar Mar 22 '24 16:03 NunesEvandrus

Hello!

To work correctly, you need the following packages HarfBuzzSharp.NativeAssets.Linux SkiaSharp.NativeAssets.Linux.NoDependencies Make sure you have them. I will also attach a docker file. Dockerfile (5).txt

Yamasiash avatar Apr 02 '24 13:04 Yamasiash

Hi @Yamasiash,

Does it even work in the community version? I'll test it and get back to you.

Thanks.

NunesEvandrus avatar Apr 02 '24 14:04 NunesEvandrus

Fala @NunesEvandrus , voce conseguiu solucionar seu problema?

tiagovbp avatar Jun 06 '24 10:06 tiagovbp

i use mac os have same problem. I use FastReport.Core.Skia.Demo and FastReport.OpenSoure.Export.PdfSimple is have bug version CS0012: The type 'ExportBase' is defined in an assembly that is not referenced. You must add a reference to assembly 'FastReport, Version=2024.2.1.0, Culture=neutral, PublicKeyToken=5ceb240df42bf6e8'. ( i am fix test Not use PDFSimpleExport and use baseexport result is "" null )can help me or Which nuget do I need to install?

PoomBE avatar Jun 07 '24 02:06 PoomBE

Hello!

To work correctly under Linux, use FastReport.Core.Skia.Demo in your application The packages you will need are: FastReport.Core.Skia.Demo then switch the package source to nuget.org for the packages you need: HarfBuzzSharp.NativeAssets.Linux SkiaSharp.NativeAssets.Linux

Best regards, Bogdan

BogdanStg avatar Dec 19 '24 12:12 BogdanStg