I'm trying to upgrade to Stimulsoft.Reports.Web.NetCore 2023.2.4, but when I try to load a pre-compiled report it fails with the following error:
Code: Select all
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.MissingMethodException: Method not found: 'Void Stimulsoft.Report.Components.StiText.set_Font(System.Drawing.Font)'.
at Reports.Report.InitializeComponent()
at Reports.Report..ctor()
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions)
--- End of inner exception stack trace ---
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions)
at Stimulsoft.Base.StiActivator.CreateObject(Type type)
at Stimulsoft.Report.StiReport.GetReportsFromAssembly(Assembly assembly)
at Stimulsoft.Report.StiReport.GetReportFromAssembly(Stream assemblyStream)
at Stimulsoft.Report.StiReport.GetReportFromAssembly(String assemblyFile, Boolean lockFile)
at Stimulsoft.Report.StiReport.GetReportFromAssembly(String assemblyFile)
I've attached a simple example project that should reproduce the issue. A simple report along with it's compiled dll are in the bin folder. This is the line that's throwing the exception:
Code: Select all
var report = StiReport.GetReportFromAssembly(Path.Combine(Environment.CurrentDirectory, "Report.dll"));
Thanks,
Ryan