Posted 15 January 2021, 8:40 am EST
I’m trying to export a PDF from a section report via a Linux based docker image and I’m running into this error. Is there a way to disable the FontLinks functionality so it doesn’t need access to the registry?
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.TypeInitializationException: The type initializer for 'Microsoft.Win32.Registry' threw an exception.
---> System.PlatformNotSupportedException: Registry is not supported on this platform.
at Microsoft.Win32.RegistryKey.OpenBaseKeyCore(RegistryHive hKey, RegistryView view)
at Microsoft.Win32.Registry..cctor()
--- End of inner exception stack trace ---
at GrapeCity.ActiveReports.Export.Pdf.Section.PDFRender.GdiFontFactory.PopulateFontLinks()
at GrapeCity.ActiveReports.Export.Pdf.Section.PDFRender.GdiFontFactory..ctor(FontCollection fontCollection)
at GrapeCity.ActiveReports.Export.Pdf.Section.PDFRender.GdiFontFactory..ctor()
at GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport.CreateAndInitializeFontFactory(Boolean isProFeaturePermitted)
at GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport..ctor(FontFactory factory)
at GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport..ctor()