i am using ReportViewer control in my aspx page. i am accessing the report from remote processing mode.
this is my 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();
The error is:
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?
Thanks,
D.Bernardin