我在ReportService2005中工作到我的MVC5项目有困难。ReportService2005和MVC 5
当我运行这段代码:
MainReport.ServerReport.ReportPath = "BLAHBLAHFILEPATH";
Microsoft.Reporting.WebForms.ReportParameter rp = new Microsoft.Reporting.WebForms.ReportParameter("TEST","TEST",true);
MainReport.ServerReport.SetParameters(rp); //error occurs here
MainReport.ServerReport.Refresh();
我碰到过这样的错误:
Could not load file or assembly 'Microsoft.ReportViewer.WebForms.XmlSerializers,
Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its
dependencies. The system cannot find the file specified.
我重新安装所有这些,但仍然出现错误:
MICROSOFT® REPORT VIEWER 2012 RUNTIME
Microsoft® System CLR Types for Microsoft® SQL Server® 2012
Microsoft Report Viewer Redistributable 2005
Microsoft Report Viewer Redistributable 2005 Service Pack 1
(其中一些建议在这里:Could not load file or assembly 'Microsoft.ReportViewer.WebForms')
有何想法?我还将NuGet软件包添加到了我的参考资料中。
Microsoft.ReportViewer.WebForms是11版,而Microsoft.ReportViewer.Common是10版
任何想法上有什么可以去错了吗? 谢谢
请问您看看我的答案[无法加载文件或程序集'Microsoft.ReportViewer.Common,Version ...](http:// stackoverflow .COM /问题/ 22253607 /可能 - 不加载文件或组装,微软的ReportViewer常见版本-11-0-0-0/33670464#33670464)? – 2016-04-24 21:05:31