Using reportviewer in my project . i face the following error message
could not load file or assembly ' microsoft.reportviewer.Common version=11.0.0.0'
In my case, the project ran fine on the local machine (in 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/
When I recompiled my project, the Report Viewer DLL showed up in the bin.
Then, when I published, the DLL was there, and the site works fine now.
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...
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.