[英]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.WebForms
, Microsoft.ReportViewer.Common
和Microsoft.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.