Quantcast
Channel: SQL Server Reporting Services
Viewing all articles
Browse latest Browse all 1418

Report Viewer Control Server Side Report

$
0
0

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


Viewing all articles
Browse latest Browse all 1418

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>