System.IO.FileNotFoundException: Could not load file or assembly 'System.ValueT

Posted by: ccampbell on 1 November 2024, 2:48 pm EST

    • Post Options:
    • Link

    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

  • Posted 4 November 2024, 3:04 am EST

    Hi Chris,

    Can you provide us the following information so that we may investigate and reply accordingly?

    • Project architecture
    • Project Type
    • Your ActiveReports use case
    • Where are you deploying your application?
    • A stripped-down sample replicating the issue
  • Posted 5 November 2024, 3:28 pm EST

    Hello and thank you for your reply.

    I did create a sample project that, of course, worked perfectly. I decided to create a new project from scratch and copy the components from my existing project into it, testing as I went. It appears whatever was causing the issue in the viewer no longer exists.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels