Issues Upgrading from AR6 to AR15

Posted by: rkuehn on 8 February 2021, 2:47 pm EST

    • Post Options:
    • Link

    Posted 8 February 2021, 2:47 pm EST

    I’m upgrading from AR6 to AR15. I’m using VS 2019 on Windows 10 Pro and targeting .NET Framework 4.7.2 in my solution. My AR6 report designers are based on classes that are ultimately based on an ActiveReport object.

    I’ve worked through all the standard conversion elements of upgrading references and namespaces. I was even able to create a report PDF. Unfortunately, I’m able to view or use any of the report designers. When I try to open my them, I get errors such as “Value cannot be null. Parameter name: instance” and “The designer could not cast the report to the SectionReport type”. I even tried creating a sample app containing only the GrapeCity.ActiveReports and GrapeCity.ActiveReports.Core.Document references plus one of my simpler report designers. That designer shows the error “Value cannot be null. Parameter name: instance” when I open it. I’m attaching a WinRAR archive containing that program.

    Please help me understand the steps I need to follow to finalize my conversion of these AR6 report designers. Thanks in advance.

    AR15Conversion.zip

  • Posted 9 February 2021, 5:23 am EST

    Hello,

    Can you delete the ActiveReports dll in the project and install the “GrapeCity.ActiveReports” NuNet package through Manage NuGet Package option in the visual studio and build the program. After that, the SectionReport will open in the Design mode without an error.

    Thanks,

    Mohit

  • Posted 9 February 2021, 12:19 pm EST

    @mohitg

    Unfortunately, I’m still seeing the same issue - “Value cannot be null. Parameter name: instance”. I removed both GrapeCity references and installed the GrapeCity.ActiveReports package from Nuget. I’m attaching another zip containing the upgraded project minus the package folder, since the file size limit here is 5MB.

    Please help me understand what I’m missing.

    AR15Conversion3.zip

  • Posted 9 February 2021, 12:24 pm EST - Updated 30 September 2022, 4:49 pm EST

    @mohitg

    I’m also attaching screenshots of (1) the error I’m seeing and (2) the conversion project references.

    Please help me understand what I’m missing.

  • Posted 10 February 2021, 12:55 am EST

    Hello,

    Could you please try with the attached sample and see if the issue also replicate with the attached one.

    Thanks,

    Mohit

    AR15Conversion.zip

  • Posted 10 February 2021, 10:25 am EST

    @mohitg

    I’m able to view and update the designer in your sample. Unfortunately, I still experience the issue in my original solution. What did you change to resolve the issue?

  • Posted 10 February 2021, 11:10 pm EST

    Hello,

    Please try after manually adding a reference to GrapeCity.ActiveReports.Serializer NuGet package.

    if the problem still occurs:

    Try to reset VS (https://docs.microsoft.com/en-us/visualstudio/ide/reference/resetsettings-devenv-exe?view=vs-2019)

    Also, Please comment the following line:

    this.shpHeadingBar.RoundingRadius = 9.999999F;

    Thanks,

    Mohit

Need extra support?

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

Learn More

Forum Channels