我在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