.NET 5 Support?

Posted by: cliffe on 11 November 2020, 9:22 am EST

    • Post Options:
    • Link

    Posted 11 November 2020, 9:22 am EST

    Hello, I’m just wondering whether .NET 5 is supported with the latest 14.2 version of ActiveReports?

    I have a .NET 5 ASP.NET application & was able to add the GrapeCity.ActiveReports NuGet package and add a Section Report (to a .NET Framework project & link it as per https://www.grapecity.com/activereportsnet/docs/v14/online/designing-code-based-section-reports-in-net-core.html).

    However, when I try to instantiate a report in the app, it throws an exception : Could not load file or assembly ‘GrapeCity.ActiveReports.Licensing, Version=14.2.20665.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff’. The system cannot find the file specified.

    Any thoughts on this?

    Thanks in advance,

    Cliffe

  • Posted 12 November 2020, 7:38 am EST

    Hi again. I found that this error only happens with the latest NuGet package (14.2.20665).

    When I use 14.2.20581, I don’t get that error when I instantiate the report, but I get an error when I try to run it:

    System.IO.FileNotFoundException: Could not load file or assembly ‘System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’. The system cannot find the file specified.

    Is this something you’ve seen before?

    Thanks again,

    Cliffe

  • Posted 12 November 2020, 8:36 am EST

    Well, I got it to work. First, I had to downgrade the NuGet packages to 14.2.20540.

    Then I had to do what was suggested on the Troubleshooting page at https://www.grapecity.com/activereportsnet/docs/v14/online/ar-troubleshooting.html under “An exception “System.IO.FileNotFoundException’ object” occurs when running a section report in an ASP.NET Core 3.1 project” (although that wasn’t the exact exception I got):

    In the project file, add

    <ItemGroup>
        <FrameworkReference Include="Microsoft.WindowsDesktop.App" />
    </ItemGroup>
    

    and then in Startup.cs, add

    Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
    

    in the ConfigureServices() method.

    Cliffe

  • Posted 12 November 2020, 1:48 pm EST

    Hello,

    I am glad the issue is got resolved. However, the official support of .Net 5 will come in our next major release that i.e AR15 which is scheduled to release in mid of next month i.e Dec2020.

    Thanks,

    Mohit

Need extra support?

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

Learn More

Forum Channels