Posted 1 November 2024, 2:48 pm EST
I’ve written an application in VS 2019, using Active Reports 16. The section report runs fine in the viewer in my development environment. However, after deploying the application to another device, the report generates an error as it’s trying to render the report in the viewer:
System.IO.FileNotFoundException: Could not load file or assembly 'System.ValueTuple, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.
File name: 'System.ValueTuple, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
at ask.a(String A_0, Boolean A_1)
at GrapeCity.Documents.Imaging.GcBitmap.ApplyLicenseKey(String key)
at GrapeCity.ActiveReports.Core.Document.Drawing.Gc.I..Render(TextLayout tl, Graphics graphics, PointF location)
at GrapeCity.ActiveReports.Core.Document.Drawing.Gc.GcGdiGraphics.InternalDrawTextLayout(TextLayout layout, PointF location)
at GrapeCity.Documents.Drawing.GcGraphics.DrawTextLayout(TextLayout layout, PointF location)
at GrapeCity.ActiveReports.Core.Document.Drawing.Gc.GcCanvasItemRenderer.DrawTextLayoutWithClip(TextLayout tl, RectangleF bounds, Boolean forceClip)
at GrapeCity.ActiveReports.Core.Document.Drawing.Gc.GcCanvasItemRenderer.Render(CanvasItem item)
at GrapeCity.ActiveReports.Core.Document.Page.Render(ICanvasItemRenderer renderer)
at GrapeCity.ActiveReports.Viewer.Common.Internal..Render(Graphics graphics)
at GrapeCity.ActiveReports.Viewer.Win.Views.SinglePageView.OnPaintImpl(PaintEventArgs e)
I’ve have these two lines in the license file:
GrapeCity.ActiveReports.SectionReport, GrapeCity.ActiveReports, Version=16.4.0.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff
GrapeCity.ActiveReports.Viewer.Win.Viewer, GrapeCity.ActiveReports.Viewer.Win, Version=16.4.0.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff
I have other applications that deploy and run with no errors and the list of deployed components is identical between the different applications.
What could be causing this error?
Thanks,
Chris