Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
NunesEvandrus opened this issue Mar 22, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@NunesEvandrus
Copy link

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 NunesEvandrus added the bug Something isn't working label Mar 22, 2024
@Yamasiash
Copy link

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

@NunesEvandrus
Copy link
Author

Hi @Yamasiash,

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

Thanks.

@tiagovbp
Copy link

tiagovbp commented Jun 6, 2024

Fala @NunesEvandrus , voce conseguiu solucionar seu problema?

@PoomBE
Copy link

PoomBE commented Jun 7, 2024

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?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants