This is a migrated thread and some comments may be shown as answers.

Error ReportViewer ReportSource using UriReportSource

1 Answer 131 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Dhananjay
Top achievements
Rank 1
Dhananjay asked on 14 May 2013, 07:50 PM
Hi,

I am new to Telerik reporting and i am trying to access report using URL and show is ReportViewer1 in  aspx page.

But when i run the application i get following error. Please let me know the issues.

I am using 7.0.13.426 

 

 

 

 


ReportSource

 

 

reportSource = new UriReportSource {Uri = ResolveClientUrl("http://xxxx/Report/PerReportsViewer.aspx?ID=2585")};

 

ReportViewer1.ReportSource = reportSource;



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 System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
at System.Xml.XmlTextReaderImpl.ParseDoctypeDecl()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlReader.MoveToContent()
at Telerik.Reporting.Xml.ObjectXmlReader.Deserialize()
at Telerik.Reporting.Xml.XmlSerializer.Deserialize(XmlReader reader)
at Telerik.Reporting.Xml.XmlSerializer.Deserialize(String fileName)
at Telerik.Reporting.XmlSerialization.ReportXmlSerializer.Deserialize(String intputUri)
at Telerik.Reporting.Processing.UriReportDocumentResolver.Resolve(IReportDocumentResolverContext context, UriReportSource rs)
at Telerik.Reporting.Processing.ReportDocumentResolver`1.Telerik.Reporting.Processing.IReportDocumentResolver.Resolve(IReportDocumentResolverContext context, ReportSource rs, Boolean loadParameters)
at Telerik.Reporting.Processing.ReportDocumentResolver.<>c__DisplayClass1.<Resolve>b__0(IReportDocumentResolver r)
at Telerik.Reporting.Processing.ReportDocumentResolver.Bind[T](ReportSource source, Func`2 func)
at Telerik.Reporting.Processing.ReportDocumentResolver.Resolve(IReportDocumentResolverContext context, ReportSource source, Boolean loadParameters)
at Telerik.ReportViewer.WebForms.ParametersPage.ResolveReportDocument(ReportSource reportSource)
at Telerik.ReportViewer.WebForms.ParametersPage.get_ReportDocument()
at Telerik.ReportViewer.WebForms.ParametersPage.get_ParamsManager()
at Telerik.ReportViewer.WebForms.ParametersPage.CreateChildControls()
at System.Web.UI.Control.EnsureChildControls()
at Telerik.ReportViewer.WebForms.ParametersPage.OnPreLoad(EventArgs e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

1 Answer, 1 is accepted

Sort by
0
Unknown
Top achievements
Rank 1
answered on 17 May 2013, 03:31 PM
Check this help article. Basically you will have to enable the property (set it to the default value, which is Parse and not to Prohibit).
Tags
General Discussions
Asked by
Dhananjay
Top achievements
Rank 1
Answers by
Unknown
Top achievements
Rank 1
Share this question
or