sto usando il controllo ReportViewer nella mia pagina aspx. sto accedendo al rapporto dalla modalità di elaborazione remota.Impossibile caricare il file o l'assembly Microsoft.ReportViewer.WebForms.XmlSerializers
questo è il mio codice:
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();
L'errore è:
Impossibile caricare il file o il montaggio 'Microsoft.ReportViewer.WebForms.XmlSerializers, Version = 9.0.0.0, Cultura = neutro, PublicKeyToken = b03f5f7f11d50a3a 'o una delle sue dipendenze . Il sistema non trova il file specificato.
Qualcuno può aiutarmi, come risolvere questo problema?
Grazie,
D.Bernardin
si prega di controllare questa domanda e tutte le risposte qui in SO: http://stackoverflow.com/questions/ 4396146/why-cant-i-see-microsoft-reportviewer-webforms-version-10-0-0-0-in-add-referenc –