gpt4 book ai didi

c# - 无法加载文件或程序集 Microsoft.ReportViewer.WebForms.XmlSerializers

转载 作者:太空狗 更新时间:2023-10-29 20:01:48 29 4
gpt4 key购买 nike

我在我的 aspx 页面中使用 ReportViewer 控件。我正在从远程处理模式访问报告。

这是我的代码:

      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();

错误是:

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.

谁能帮助我,如何解决这个问题?

谢谢,

D.伯纳丁

最佳答案

您是否尝试过重新安装 ReportViewer 可再发行文件?你可以在这里找到链接

http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=6576

http://www.microsoft.com/download/en/details.aspx?id=4016

第一个是与 VS2008 报表查看器相关的(另一个是 2005 版本的),应该可以解决您的问题。

关于c# - 无法加载文件或程序集 Microsoft.ReportViewer.WebForms.XmlSerializers,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7494641/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com