简体   繁体   中英

System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.ReportViewer.Common, Version=12.0.0.0, Culture=neutral, PublicKeyToken=

I'm really desperate for a solution... I'm developing some small windows application in VS 2015 C# and I'm using MS Access and Report Viewer to present some stuff from the database. When I start the application on my computer everything is fine. On every other computer, I got this error

(System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.ReportViewer.Common, Version=12.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified)

...when trying to call form with report viewer.

I have tried to clean, rebuild, add/remove references, reinstall Microsoft Report Viewer 2015 Runtime redistributable package, and I couldn't find any solution anywhere.

Does anyone have some idea how to resolve this?

Reference added

There are two things to check.

  1. If you are using a Nuget package to manage ReportViewer, check that. Check for a broken package, remove and reinstall the package, or check for updates to the Nuget package.

  2. In the project references look for a broken reference, by seeing if the ReportViewer reference has a yellow exclamation point next to it. If it does, remove and readd the reference.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM