SQL Server Reporting Services显示XML文档中禁止的DTD错误
时间:2020-03-06 14:24:04 来源:igfitidea点击:
运行Reporting Services报表时出现以下错误。
Process name: w3wp.exe Account name: NT AUTHORITY\NETWORK SERVICE Exception information: Exception type: XmlException Exception message: For security reasons 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.
我选择一个报告,输入参数(参数看起来一团糟),然后按查看报告。然后在底部显示消息"出于安全原因,此XML文档中禁止使用DTD。要启用DTD处理,请在XmlReaderSettings ...上设置ProhibitDtd属性..."。
我该如何解决?
解决方案
检查报表服务器网站是否具有正确的本地路径文件夹。如果不正确,则可能需要进行iisreset。
在使用SSRS 2005并运行包含XML数据的大型报表时,我已经注意到了这一点。
运行一个月度报告时可以运行,但是当我运行一个季度报告时会给我这个错误。
升级到SQL / SSRS 2008对我来说解决了这个问题!