Last post Nov 29, 2010 11:37 AM by mangeshhendre
Nov 10, 2007 01:25 PM|jorgegr|LINK
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.
Nov 13, 2007 11:03 PM|Nai-Dong Jin - MSFT|LINK
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:
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:
Apr 26, 2008 10:07 PM|therage3k|LINK
I have a 2003 server with 4GB RAM, and I am using a DNS name instead of IP. I still am seeing this error even with a basic report that pulls 10 rows (5 columns).
Feb 26, 2009 11:47 AM|rmeans|LINK
In IIS7 the ReportManager application makes a request whenever a report is run to the ReportServer application to get the stylesheet needed to render the report. It request the URL
string url =
?? "")); from the method Microsoft.Reporting.WebForms.ServerReport.GetStyleSheet(string styleSheetName); The problem is the the
is not a path to a specific .aspx file, but to the server directory i.e.
http://www.myreportserver.com/ReportServer and IIS7 by default does not map all requests to the .NET Isapi Module which is what needs to happen here.
To fix the probelm go to your ReportServer virutal directory then open the Handler Mappings. Under the actions section click Add Wildcard Script Map. This will open the Add Wildcard Script Map window. The Request path will be set to * and can not be changed.
In the Executable path enter C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll and give it a name like ReportServer to help you understand why you added it. Click OK. Now your reports should run and you won't get the For security resasons DTD
is prohibited in this XML document error.
Oct 01, 2010 12:58 PM|thatguyinKC|LINK
I just started having this same error message come up the last 2 days. Our report server has been running without issue for YEARS without this problem. Our report datasets range from 1 to maybe 300 rows at most. ALL reports are affected. Our SSRS is on a
64bit server, Windows Server 2003 R2, SP2, with 8GB of RAM. I don't believe this is a memory issue, as some threads have suggested. We are using the DNS/MachineName, not an IP, as others have suggested. We're running IIS6 as well. Subscriptions are not affected
by this, as we have around 50-100 per day go out. But, in the ReportViewer, the parameter fields are all moved around, larger, different from what they were a few days ago. I'm not sure what to do on this. Any suggestions?
Nov 29, 2010 11:37 AM|mangeshhendre|LINK
This fixed my problem. This might have happened when I reinstall .Net Framework on server hosting the report server. Once I fixed the Wildcard application mappings with aspnet_isapi.dll, it resolved the problem. Thank you very much!