简体   繁体   English

无法加载文件或程序集'microsoft.reportviewer.Common version = 11.0.0.0'

[英]could not load file or assembly ' microsoft.reportviewer.Common version=11.0.0.0'

Using reportviewer in my project . 在我的项目中使用reportviewer。 i face the following error message 我遇到以下错误消息

could not load file or assembly ' microsoft.reportviewer.Common version=11.0.0.0' 无法加载文件或程序集'microsoft.reportviewer.Common version = 11.0.0.0'

In my case, the project ran fine on the local machine (in VS2012). 就我而言,该项目在本地计算机上运行良好(在VS2012中)。 But when I published it, it wasn't working. 但是当我发布它时,它没有用。 I got the yellow screen with the same issue as the original poster. 我的黄屏出现了与原始海报相同的问题。

I followed the advice from @pravprab and ran the Package Manager for Report Viewer: http://www.nuget.org/packages/MicosoftReportViewerWebForms_v11/ 我遵循了@pravprab的建议,并为报告查看器运行了程序包管理器: http ://www.nuget.org/packages/MicosoftReportViewerWebForms_v11/

When I recompiled my project, the Report Viewer DLL showed up in the bin. 当我重新编译项目时,报表查看器DLL出现在垃圾箱中。

Then, when I published, the DLL was there, and the site works fine now. 然后,当我发布时,DLL就在那里了,该站点现在可以正常工作了。

You can use Microsoft.ReportViewer.2012.Runtime that contains Microsoft.ReportViewer.WebForms , Microsoft.ReportViewer.Common and Microsoft.ReportViewer.ProcessingObjectModel libraries. 您可以使用包含Microsoft.ReportViewer.2012.Runtime Microsoft.ReportViewer.WebFormsMicrosoft.ReportViewer.CommonMicrosoft.ReportViewer.ProcessingObjectModel库。 For more information please have a look at my answer on Could not load file or assembly 'Microsoft.ReportViewer.Common, Version=11.0.0.0 . 有关更多信息,请查看我关于无法加载文件或程序集'Microsoft.ReportViewer.Common,Version = 11.0.0.0的答案。 Hope this helps... 希望这可以帮助...

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法加载文件或程序集 'Microsoft.ReportViewer.Common,版本 = 11.0.0.0 - Could not load file or assembly 'Microsoft.ReportViewer.Common, Version=11.0.0.0 尽管安装了先决条件,但无法加载程序集Microsoft.ReportViewer.Common - Could not load assembly Microsoft.ReportViewer.Common, despite installing the prerequisites 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= 无法加载文件或程序集“ Microsoft.ReportViewer.Common”或其依赖项之一。 -正在使用文件 - Could not load file or assembly 'Microsoft.ReportViewer.Common' or one of its dependencies. - File is being used 无法加载文件或程序集 'Microsoft.SqlServer.Types,版本 = 11.0.0.0 - Could not load file or assembly 'Microsoft.SqlServer.Types, Version=11.0.0.0 无法加载程序集'Microsoft.sqlsever.SqlTDiagM,version = 11.0.0.0' - Could not load assembly 'Microsoft.sqlsever.SqlTDiagM,version=11.0.0.0' 无法加载文件或程序集Microsoft.ReportViewer.ProcessingObjectModel,版本= 13.0.0.0 - Could not load file or assembly Microsoft.ReportViewer.ProcessingObjectModel, Version=13.0.0.0 "无法加载文件或程序集“Microsoft.ReportViewer.ProcessingObjectModel,版本=10.0.0.0" - Could not load file or assembly 'Microsoft.ReportViewer.ProcessingObjectModel, Version=10.0.0.0 2017服务器中无法加载文件或程序集Microsoft.SqlServer.management.sdk.sfc版本11.0.0.0 - Could not load file or assembly Microsoft.SqlServer.management.sdk.sfc version 11.0.0.0 in 2017 server 无法加载文件或程序集“Microsoft.VisualStudio.TestPlatform.ObjectModel,版本 = 11.0.0.0” - Could not load file or assembly 'Microsoft.VisualStudio.TestPlatform.ObjectModel, Version=11.0.0.0'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM