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

时间:2014-01-28 05:42:06

标签: c# asp.net reportviewer

在我的项目中使用reportviewer。我面临以下错误消息

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

2 个答案:

答案 0 :(得分:0)

就我而言,该项目在本地计算机上运行良好(在VS2012中)。但是当我发表它时,它并没有奏效。我的黄色屏幕与原始海报的问题相同。

我按照@pravprab的建议运行了报告查看器的包管理器:http://www.nuget.org/packages/MicosoftReportViewerWebForms_v11/

当我重新编译项目时,报表查看器DLL显示在bin中。

然后,当我发布时,DLL就在那里,现在网站工作正常。

答案 1 :(得分:0)

You can use Microsoft.ReportViewer.2012.Runtime that contains Microsoft.ReportViewer.WebForms, Microsoft.ReportViewer.Common and Microsoft.ReportViewer.ProcessingObjectModel libraries. 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. Hope this helps...