Error LC0003: Unable to resolve type 'GrapeCity.ActiveReports.SectionReport, Gr

Posted by: johen on 28 March 2024, 3:16 am EST

    • Post Options:
    • Link

    Posted 28 March 2024, 3:16 am EST - Updated 28 March 2024, 3:16 am EST

    So, I just tried to update from AR v17 to v18 and got the error in the title… I’m not sure if it’s Mescius fault or Microsoft fault, but it’s so frustrating when something that should be as simple as an “update packages” click in Nuget becomes something impossible to debug.

    The ONLY difference in my project is this:

    Package References in .csproj went from this:

      <ItemGroup>
        <PackageReference Include="GrapeCity.ActiveReports">
          <Version>17.2.2</Version>
        </PackageReference>
        <PackageReference Include="GrapeCity.ActiveReports.Chart.Win">
          <Version>17.1.2</Version>
        </PackageReference>
        <PackageReference Include="GrapeCity.ActiveReports.Core.Export.Tiff.Section">
          <Version>4.3.2</Version>
        </PackageReference>
        <PackageReference Include="GrapeCity.ActiveReports.Export.Excel">
          <Version>17.2.2</Version>
        </PackageReference>
        <PackageReference Include="GrapeCity.ActiveReports.Export.Html">
          <Version>17.2.2</Version>
        </PackageReference>
        <PackageReference Include="GrapeCity.ActiveReports.Export.Pdf">
          <Version>17.2.2</Version>
        </PackageReference>
        <PackageReference Include="GrapeCity.ActiveReports.Export.Rdf">
          <Version>17.2.2</Version>
        </PackageReference>
        <PackageReference Include="GrapeCity.ActiveReports.Export.Word">
          <Version>17.2.2</Version>
        </PackageReference>
        <PackageReference Include="GrapeCity.ActiveReports.Export.Xml">
          <Version>17.2.2</Version>
        </PackageReference>
        <PackageReference Include="GrapeCity.ActiveReports.Viewer.Win">
          <Version>17.2.2</Version>
        </PackageReference>
        <PackageReference Include="Portable.BouncyCastle">
          <Version>1.9.0</Version>
        </PackageReference>
        <PackageReference Include="System.Text.Json">
          <Version>8.0.1</Version>
        </PackageReference>
      </ItemGroup>

    To this:

      <ItemGroup>
        <PackageReference Include="GrapeCity.ActiveReports">
          <Version>18.0.0</Version>
        </PackageReference>
        <PackageReference Include="GrapeCity.ActiveReports.Chart.Win">
          <Version>18.0.1</Version>
        </PackageReference>
        <PackageReference Include="GrapeCity.ActiveReports.Core.Export.Tiff.Section">
          <Version>4.4.0</Version>
        </PackageReference>
        <PackageReference Include="GrapeCity.ActiveReports.Export.Excel">
          <Version>18.0.0</Version>
        </PackageReference>
        <PackageReference Include="GrapeCity.ActiveReports.Export.Html">
          <Version>18.0.0</Version>
        </PackageReference>
        <PackageReference Include="GrapeCity.ActiveReports.Export.Pdf">
          <Version>18.0.0</Version>
        </PackageReference>
        <PackageReference Include="GrapeCity.ActiveReports.Export.Rdf">
          <Version>18.0.0</Version>
        </PackageReference>
        <PackageReference Include="GrapeCity.ActiveReports.Export.Word">
          <Version>18.0.0</Version>
        </PackageReference>
        <PackageReference Include="GrapeCity.ActiveReports.Export.Xml">
          <Version>18.0.0</Version>
        </PackageReference>
        <PackageReference Include="GrapeCity.ActiveReports.Viewer.Win">
          <Version>18.0.0</Version>
        </PackageReference>
        <PackageReference Include="Portable.BouncyCastle">
          <Version>1.9.0</Version>
        </PackageReference>
        <PackageReference Include="System.Text.Json">
          <Version>8.0.3</Version>
        </PackageReference>
      </ItemGroup>

    And BAM, my code won’t compile anymore with this licensing error.

    My licenses.licx file looks like this:

    GrapeCity.ActiveReports.SectionReport, GrapeCity.ActiveReports
    GrapeCity.ActiveReports.PageReport, GrapeCity.ActiveReports

    If I roll back to AR v17, there are no errors.

    I’m using Visual Studio 17.8, targeting the project to .NET Framework 4.8

    I have both a valid AR v17 and AR v18 license.

  • Posted 1 April 2024, 6:30 pm EST

    Hi João,

    Could you please try and use the Upgrade tool and see if that fixes the issue? Please refer to the following steps:

    1. Open the Project in Visual Studio 2022.
    2. Go to Tools>Convert To ActiveReports 18.

    Once the conversion is done try to Clean and Rebuild the application and run it.

    If the issue persists, then please share a simplified sample application reproducing the issue.

Need extra support?

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

Learn More

Forum Channels