无法加载文件或程序Microsoft.ReportViewer.WebForms.XmlSerializers [英] Could not load file or assembly Microsoft.ReportViewer.WebForms.XmlSerializers
问题描述
我用我的aspx页面ReportViewer控件。我正在访问远程处理模式的报告。
i am using ReportViewer control in my aspx page. i am accessing the report from remote processing mode.
这是我的code:
ReportServerDomain = System.Configuration.ConfigurationSettings.AppSettings["ReportServerDomain"];
ReportServerUserName = System.Configuration.ConfigurationSettings.AppSettings["ReportServerUserName"];
ReportServerPassword = System.Configuration.ConfigurationSettings.AppSettings["ReportServerPassword"];
String ReportFolder = System.Configuration.ConfigurationSettings.AppSettings["ReportFolderName"];
rptUrl = new Uri(Convert.ToString(System.Configuration.ConfigurationSettings.AppSettings["ReportURL"]));
IReportServerCredentials irsc = new CustomReportCredentialsToCreateStatement(ReportServerUserName, ReportServerPassword, ReportServerDomain);
ReportViewer1.ServerReport.ReportServerCredentials = irsc;
ReportViewer1.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote;
parameters = new ReportParameter[1];
parameters[0] = new ReportParameter("ClientStatementBatchId", ds.Tables["ClientStatemtntBatch"].Rows[0]["ClientStatementBatchID"].ToString());
ReportViewer1.ServerReport.ReportServerUrl = rptUrl;
ReportViewer1.ServerReport.ReportPath = "/" + ReportFolder + "/Client Statements";
ReportViewer1.ServerReport.SetParameters(parameters); // i am getting error on this line.
ReportViewer1.ServerReport.Refresh();
该错误是:
无法加载文件或程序
Microsoft.ReportViewer.WebForms.XmlSerializers,版本= 9.0.0.0,
文化=中性公钥= b03f5f7f11d50a3a'或之一其
依赖。该系统找不到指定的文件。
Could not load file or assembly 'Microsoft.ReportViewer.WebForms.XmlSerializers, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
任何一个可以帮助我,如何解决这个问题呢?
Can any one help me , how to solve this issue?
谢谢,
D.Bernardin
D.Bernardin
推荐答案
您是否尝试过重新安装的ReportViewer可再发行文件?你可以在这里找到链接
Have you tried to reinstall ReportViewer redistributable files? You can find the links here
<一个href=\"http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=6576\">http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=6576
<一个href=\"http://www.microsoft.com/download/en/details.aspx?id=4016\">http://www.microsoft.com/download/en/details.aspx?id=4016
第一个是一个关系到VS2008报表查看器,(另一个是2005年版),是应该可以解决你的问题之一。
The first one is the one related to VS2008 report viewer, ( the other one is for 2005 version) and is the one that should resolve your problem.
这篇关于无法加载文件或程序Microsoft.ReportViewer.WebForms.XmlSerializers的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!