The 'rptViewer.ServerReport.SetParameters(parameters);' line of code is returning the below error message. I seem to have access to the report by using the report server URL and report path. What is causing this error message? This is a server side report. Thanks!
Client found response content type of '', but expected 'text/xml'. The request failed with an empty response.
Complete Code:
MyReportServerCredentials c = new MyReportServerCredentials("username", "pwd", "domain");
ReportParameter[] parameters = new ReportParameter[1];
parameters[0] = new ReportParameter("ApplicationID", "3");
rptViewer.ServerReport.ReportServerCredentials = c;
rptViewer.ServerReport.ReportServerUrl = new Uri("http://sqldev/reportserver/SaleReview");
rptViewer.ServerReport.ReportPath = "/Application.rdlc";
rptViewer.ServerReport.SetParameters(parameters);
rptViewer.ProcessingMode = ProcessingMode.Remote;
rptViewer.Visible = true;
rptViewer.ServerReport.Refresh();