[英]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.我真的很想找到一个解决方案......我正在 VS 2015 C# 中开发一些小型 windows 应用程序,我正在使用 MS Access 和 Report Viewer 来展示数据库中的一些内容。 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) (System.IO.FileNotFoundException:无法加载文件或程序集'Microsoft.ReportViewer.Common,Version=12.0.0.0,Culture=neutral,PublicKeyToken=89845dcd8080cc91'或其依赖项之一。系统找不到指定的文件)
...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.我试图清理、重建、添加/删除引用、重新安装 Microsoft Report Viewer 2015 Runtime 可再发行 package,但我在任何地方都找不到任何解决方案。
Does anyone have some idea how to resolve this?有谁知道如何解决这个问题?
There are two things to check.有两件事要检查。
If you are using a Nuget package to manage ReportViewer, check that.如果您使用 Nuget package 来管理 ReportViewer,请检查。 Check for a broken package, remove and reinstall the package, or check for updates to the Nuget package. Check for a broken package, remove and reinstall the package, or check for updates to the Nuget package.
In the project references look for a broken reference, by seeing if the ReportViewer reference has a yellow exclamation point next to it.在项目引用中,通过查看 ReportViewer 引用旁边是否有黄色感叹号来查找损坏的引用。 If it does, remove and readd the reference.如果是这样,请删除并阅读参考。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.