To solve this problem you can install Microsoft Report Viewer 2012 Runtime and change your references to point to those installed by the execution time.
Before installing, try uninstalling previous versions of the report viewer.
You can check these dlls:
- Microsoft.ReportViewer.Common.dll
- Microsoft.ReportViewer.ProcessingObjectModel.dll
- Microsoft.ReportViewer.WebForms.dll
- Microsoft.ReportViewer.WinForms.dll
- Microsoft.ReportViewer.DataVisualization.dll
You find them C:\Windows\assembly\GAC_MSIL\...
and then you put them in the references of your project.
For each of them, say: local copy and check if there is a 32 or 64 bit solution.
You can also run it with this command in PM Console
and Nuget :
Install-Package Microsoft.ReportViewer.2012.Runtime
Install-Package Microsoft.ReportViewer.2015.Runtime -Version 12.0.2.2402
Note: If you want to completely remove the%% previous% references, you can remove them from the Manage NuGet Packages package. Installed packages and then delete the related lines from the Microsoft.ReportViewer.xxx
file in your project. After that, it will not return again during the construction of the project.