Could not load file or assembly 'GrapeCity.ActiveReports.Core.Rdl

Posted by: paul.juhlin on 13 June 2022, 2:49 am EST

  • Posted 13 June 2022, 2:49 am EST

    Hi,

    I have upgraded from AR 7 to AR14. Everything have gone very well and all documentation is good. Except for this problem.
    I can't edit my SectionReport. It works fine as I run the report, but it dose not work to design it.

    To make it easy to find the problem. I've taken your Sample project WinWiewer and just adit a SectionReport1.vb to it. I get this error on the design:
    Could not load file or assembly 'GrapeCity.ActiveReports.Core.Rdl, Version=1.8.13.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff' or one of its dependencies. It can not find the file.
    Instances of this error (1)
    at GrapeCity.ActiveReports.SectionReport..ctor()
    --- End of stack trace from previous location where exception was thrown ---
    at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)


    In output as I try ReBuild it gives this information:
    error BC30002: Type 'GrapeCity.ActiveReports.SectionReport' is not defined.
    error BC30002: Type 'GrapeCity.ActiveReports.SectionReportModel.PageHeader' is not defined.
    error BC30002: Type 'GrapeCity.ActiveReports.SectionReportModel.Detail' is not defined.
    error BC30002: Type 'GrapeCity.ActiveReports.SectionReportModel.PageFooter' is not defined.
    error BC30284: sub 'Dispose' cannot be declared 'Overrides' because it does not override a sub in a base class.


    First I used the latest Nuget, 14.3.21055. I have also tryed a Nuget coresponding to latest hotfix from you, 14.2.20743.

    I've spent a couple of days looking through this forum. But now I do not know what to more look for.

    Kind regards, Paul
  • Replied 13 June 2022, 10:09 pm EST

    Hello,

    If you have ActiveReports 13 installed on your system, could you please try uninstalling the same from your system, and then try rebuilding your project.

    You may also update to the latest version of ActiveReports 14 using the below link:
    https://cdn.grapecity.com/ActiveReports/AR14/ActiveReports-v14.3.20938.msi

    Furthermore, instead of handling a single dependency at a time, could you please try using the "Convert to ActiveReports 14" Tool from the Visual Studio's Tool menu which would automatically update all the ActiveReports package in your project,

    If the issue persists, please share a stripped-down application along with the screenshot of the error and the environment details of your system, so that we could debug it and reply accordingly.

    Regards
    Dushyant Sharma
  • Marked as Answer

    Replied 13 June 2022, 11:04 pm EST

    So I got it running today. Just a recap for anyone reading.

    I only have AR 7. Nothing else.
    I have before my question made all sort of tips from the documentation. Like "Convert to ActiveReports 14". The documentation on how to upgrade and breaking changes are very good and easy to follow. As I started my project after an rebuild today I got "Value cannot be null. Parameter name: instance".

    In a response in this post, https://www.grapecity.com/forums/ar-dev/error-opening-report-desig Cliffe talks about "GrapeCity.ActiveReports.Serializer". But I did not have that nuget on my project. By adding it, it all started to work.

    Thanks for help.
  • Replied 16 June 2022, 6:29 am EST

    Hello,

    We are glad to know that you were able to resolve the issue. Let us know in case you ran into any further issues.

    Regards,
    Dushyant Sharma
  • Replied 20 June 2022, 1:49 am EST

    Hi,
    Sorry to say. My problems are coming back.
    This is done by me:
    * Installed ActiveReports-v14.3.20938.msi
    * Using Nuget Packages 14.3.21055
    * My licenses.licx looks like this
    GrapeCity.ActiveReports.SectionReport, GrapeCity.ActiveReports, Version=14.3.21055.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff
    GrapeCity.ActiveReports.Viewer.Win.Viewer, GrapeCity.ActiveReports.Viewer.Win, Version=14.3.21055.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff
    * In all my reports in DESING mode I get this line:
    Could not load file or assembly 'GrapeCity.ActiveReports.Viewer.Win, Version=14.3.21055.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff' or one of its dependencies. Can't find the file.
    * It is no problem to RUN my reports. They work perfect.
    * Convert to Active Reports 14 is done.
    * Reset Visual Studio settings do not help.
    * I had AR7 and upgraded to AR14 in one go.
    * Last week it worked as I added GrapeCity.ActiveReports.Serializer to my project, but today it do not work at all.

    I do not know why it do not work to see my reports in design mode? Could you please help me?

    Regards,
    Paul Juhlin.
  • Replied 20 June 2022, 7:33 pm EST

    Uninstalled VS 2019 and Reinstalled VS 2019.
    Now it's working once more.
  • Replied 22 June 2022, 2:32 pm EST

    Hello,

    We are glad to know that you were able to resolve the issue. Let us know in case you ran into any further issues.

    Regards,
    Dushyant Sharma
Need extra support?

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

Learn More

Forum Channels