This article will be looking at a few steps to help resolve some versioning issues inside a VS project when working with AR.
Error:
'Could not load file or assembly 'GrapeCity.ActiveReports, Version=XX.X.X.X, Culture=neutral, PublicKeyToken=cc4967777c49a3ff' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)'
Steps:
(X represents the targeted version of the package that you have)
- First please make sure you have ActiveReports X installed on your system which will also install the ActiveReports X integration for your VisualStudio, you may download ActiveReports X from here [Download ActiveReports](https://developer.mescius.com/activereports/download-version-history).
- Open your project in VisualStudio and use the 'Tools > Convert to ActiveReports X' option, this will convert all the ActiveReports packages in your project to their compatible version for ActiveReports X installed on your system.
- Delete the bin, obj, and packages folder from your project's directory to delete any leftover project references.
- In VisualStudio, right-click on your project 'Clean' and 'Rebuild' your project.
Now running your project should not throw any errors for AR specifically. If it does see what the new error is about and debug accordingly.
Note:
The last steps are the main thing that fix the issue. The first 2 make sure the tools are set up correctly for use in the clean and rebuild.
Victor Stahlman