我正在尝试使用reportViewer控件在我的asp.net Web应用程序中显示SSRS报告。
SSRS报告部署在云端,我正在使用以下代码
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<asp:Button ID="btnDownload" runat="server" Text="Download PDF" onClick="btnDownload_Click" />
</div>
<rsweb:ReportViewer ID="rptViewer" runat="server"></rsweb:ReportViewer>
//服务器端代码
if (!Page.IsPostBack)
{
rptViewer.ProcessingMode = ProcessingMode.Remote;
rptViewer.ServerReport.ReportServerUrl =new Uri("https://vvlt38yf7h.reporting.windows.net/reportserver");
rptViewer.ServerReport.ReportPath = "/Report Test/Report_Demo";
rptViewer.ShowParameterPrompts = false;
rptViewer.ShowPrintButton = true;
rptViewer.ShowExportControls = false;
}
显示以下错误
客户发现'text / html的响应内容类型; charset = utf-8',但预计'text / xml'。请求失败并显示错误消息