Posted 25 June 2024, 6:40 pm EST
Hi, I’ve just create a new library type project targeting netstandard2.0-windows ( existing code will be migrated from .net47 to .net8)
The problem is, compiling the following licenses.licx produces errors in both lines. Here is the licenses.licx content
what’s causing the licenses.licx build to fail?
GrapeCity.ActiveReports.SectionReport, MESCIUS.ActiveReports
GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport, MESCIUS.ActiveReports.Export.Pdf
line 1 produces this error:
Error (active) LC0004 Exception occurred creating type 'GrapeCity.ActiveReports.SectionReport, MESCIUS.ActiveReports, Version=18.0.0.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff' System.TypeInitializationException: The type initializer for 'GrapeCity.ActiveReports.Configuration.SettingsExtensions' threw an exception.
---> System.TypeInitializationException: The type initializer for 'GrapeCity.ActiveReports.Configuration.DefaultConfigurationProvider' threw an exception.
---> System.BadImageFormatException: Could not load file or assembly 'file:///C:\Users\XXXXXXXXX\.nuget\packages\microsoft.win32.registry\5.0.0\ref\netstandard2.0\Microsoft.Win32.Registry.dll' or one of its dependencies. Reference assemblies should not be loaded for execution. They can only be loaded in the Reflection-only loader context. (Exception from HRESULT: 0x80131058)
---> System.BadImageFormatException: Cannot load a reference assembly for execution. ReportsLibrary2015 C:\repos\core\SVC\SRV\Print\Reports Library2015\Properties\licenses.licx 1
line 2 produces this error:
Error (active) LC0003 Unable to resolve type 'GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport, MESCIUS.ActiveReports.Export.Pdf' ReportsLibrary2015 C:\repos\core\SVC\SRV\Print\Reports Library2015\Properties\licenses.licx 2