Skip to content

.NET6 The type initializer for 'FastReport.Utils.Res' threw an exception. Messages,WrongFileFormat NOT LOCALIZED! #410

@uopeydel

Description

@uopeydel

I try to run report is download from example that is use Simple List.frx and nwind.xml

https://github.com/FastReports/FastReport/blob/master/Demos/OpenSource/PdfExport/Program.cs

I create new project with .net6 With package

 FastReport.OpenSource Version="2022.1.10"  
 FastReport.OpenSource.Export.PdfSimple Version="2022.1.10" 

It show error like below

System.TypeInitializationException: The type initializer for 'FastReport.Utils.Res' threw an exception.
 ---> FastReport.Utils.FileFormatException: Messages,WrongFileFormat NOT LOCALIZED!
   at FastReport.Utils.XmlReader.RaiseException()
   at FastReport.Utils.XmlReader.ReadHeader()
   at FastReport.Utils.XmlReader.Read(XmlItem item)
   at FastReport.Utils.XmlDocument.Load(Stream stream)
   at FastReport.Utils.Res.LoadBuiltinLocale()
   at FastReport.Utils.Res..cctor()

It support .net6 yet?

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions