_reportLoaded:Sf_Exception - System.Xml.XmlException: For security reasons DTD is prohibited in this XML document. To enable DTD processing set the DtdProcessing property on XmlReaderSettings to Parse and pass the settings into XmlReader.Create method. at Syncfusion.RDL.Data.ReportModel.ProcessReport() at Syncfusion.EJ.ReportViewer.Internal.ReportViewerLayoutModel.LoadReport() at Syncfusion.EJ.ReportViewer.Internal.ReportViewerInternalHelper.ReportLoad() at Syncfusion.EJ.ReportViewer.Internal.ReportViewerInternalHelper.ProcessReport() |
public void OnInitReportOptions(Syncfusion.EJ.ReportViewer.ReportViewerOptions reportOption)
{
//Adds SSRS Server and Database Credentials here.
//reportOption.ReportModel.ReportServerCredential = new System.Net.NetworkCredential("<username>", "<password>");
reportOption.ReportModel.ReportServerCredential = new System.Net.NetworkCredential("test", "Test@123");
//reportOption.ReportModel.DataSourceCredentials.Add(new DataSourceCredentials("<Datasource name>", "username", "password"));
reportOption.ReportModel.DataSourceCredentials.Add(new DataSourceCredentials("FADatasource", "sa", "Test@123"));
} |
Query |
Response | ||
Thanks for the reply, with the sample solution I get the same exception. |
Yes, this issue will occur when Server credentials invalid for specified server URL. | ||
Also the SSRS service URL in the sample you linked didn't work.
|
In our previously shared sample will contain only our local URL and sample credentials and it will not work on your side because we did not host our testing SSRS server public due to licensing. So you need to change your server URL, report path and your credentials to avoid the mentioned problem at your end.
Please find the below code snippet for how to pass a server URL, report path in client side.
Please find the below code snippet for how to pass the server credentials, and if report uses datasource with credentials then need to pass those credentials for datasource in server side as shown below.
|