Could not load file or assembly GrapeCity.ActiveReports for build project after Visual Studio 2022 17.8.7 update

Patil, Mangesh 0 Reputation points
2024-03-05T07:21:39.8933333+00:00

I am getting below error while building VB.NET solution in Visual Studio 2022 Professional IDE.

Could not load file or assembly 'GrapeCity.ActiveReports, Version=17.0.3.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)'

.NET Framework: 4.7.2

Before VS2022 17.8.7 update the project was building without any issues but after update to this VS version it started giving above error.

I have packages for GrapeCity.ActiveReports 17.0.3 and its dependent packages also. The same project with the same packages and packages folder is getting compiled with VS2022 17.8.4.

It seems that some of other assemblies which are being referred by GrapeCity.ActiveReports 17.0.3 got updated during VS2022 17.8.7 update.

I am not supposed to use updated version of GrapeCity.ActiveReports 17.2.0 due to some approvals needed.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,608 questions
Visual Studio Extensions
Visual Studio Extensions
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Extensions: A program or program module that adds functionality to or extends the effectiveness of a program.
171 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
964 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 25,631 Reputation points Microsoft Vendor
    2024-03-05T13:43:39.69+00:00

    Hi @Patil, Mangesh, 

    Welcome to Microsoft Q&A! 

    Have you tried to clean and rebuild the solution?

    You can backup the project and try to reinstall the package GrapeCity.ActiveReports by right-clicking on project > Manage NuGet Packages

    If the project works normally in VS2022 version 17.8.4 and you can’t update GrapeCity.ActiveReports to the latest version, I suspect the GrapeCity.ActiveReports version 17.0.3 is not compatible with VS2022 version 17.8.7, and you can roll back the VS2022 to version 17.8.4 by opening the Visual Studio Installer > More > Rollback to previous version

    By the way, the package is related to GrapeCity, you can also report it in dedicated GrapeCity forum. Thanks for your understanding!

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".  Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments