Friday, March 30, 2012

Reportviewer errror: For security resasons DTD is prohibited in this XML document.

I am using the ReportViewer control and I am receiving the following message:

For security resasons DTD is prohibited in this XML document. To enable DTD processing set the ProhibitDtd property on XmlReaderSettings to false and pass the settings into XmlReader.Create method.

Hi,

From the error message you provided, there are several reasons which may cause the issues:

First, the error with DTD prohibited usually appears as a result of report processing/rendering running out of memory.
(You can refer this thread:http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=128205&SiteID=1)

Second, from the experience of the community members, the error would happen when you are using a IP-address for the SQL Server Reporting Server, so try to use DNS/Machine name to map your SQL Server instead of IP-address to see if it can work.
(See this thread:http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=101047&SiteID=1)

Thanks.

No comments:

Post a Comment