简体   繁体   English

System.IO.FileNotFoundException:无法加载文件或程序集“Microsoft.ReportViewer.Common,版本=12.0.0.0,文化=中性,PublicKeyToken=

[英]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?有谁知道如何解决这个问题?

Reference added添加了参考

There are two things to check.有两件事要检查。

  1. 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.

  2. 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.

相关问题 无法加载文件或程序集'microsoft.reportviewer.Common version = 11.0.0.0' - could not load file or assembly ' microsoft.reportviewer.Common version=11.0.0.0' System.IO.FileNotFoundException: '无法加载文件或程序集 'Newtonsoft.Json,版本 = 12.0.0.0, - System.IO.FileNotFoundException: 'Could not load file or assembly 'Newtonsoft.Json, Version=12.0.0.0, 无法加载文件或程序集“Microsoft.SqlServer.Types, Version=12.0.0.0, Culture=neutral, PublicKeyToken=myKey”或其依赖项之一。 - Could not load file or assembly 'Microsoft.SqlServer.Types, Version=12.0.0.0, Culture=neutral, PublicKeyToken=myKey' or one of its dependencies. 无法加载文件或程序集 'Microsoft.ReportViewer.Common,版本 = 11.0.0.0 - Could not load file or assembly 'Microsoft.ReportViewer.Common, Version=11.0.0.0 无法加载文件或程序集'Microsoft.Office.Interop.Outlook,Version = 12.0.0.0,Culture = neutral,PublicKeyToken = 71e9bce111e9429c - Could not load file or assembly 'Microsoft.Office.Interop.Outlook, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c FileNotFoundException-无法加载文件或程序集'System,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089' - FileNotFoundException - Could not load file or assembly 'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' 无法加载文件或程序集的办公室,版本= 12.0.0.0,文化=中性 - Could not load file or assembly 'office, Version=12.0.0.0, Culture=neutral System.IO.FileNotFoundException:无法加载文件或程序集 'Microsoft.EntityFrameworkCore,版本 = 2.2.0.0, - System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.EntityFrameworkCore, Version=2.2.0.0, System.IO.FileNotFoundException:无法加载文件或程序集'Microsoft.WindowsAzure.ServiceRuntime,版本= 2.5.0.0 - System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.WindowsAzure.ServiceRuntime, Version=2.5.0.0 FileLoadException:无法加载文件或程序集'Microsoft.Practices.ObjectBuilder,版本= 1.0.51205.0,区域性=中性,PublicKeyToken =空' - FileLoadException: Could not load file or assembly 'Microsoft.Practices.ObjectBuilder, Version=1.0.51205.0, Culture=neutral, PublicKeyToken=null'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM