Report Viewer control and ASPX

I am trying to use the Report Viewer Control in an ASPX page but getting the following error "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". This is with September CTP of SQL Server 2005. I am not trying to set any DTD, the same report works if displayed using the WinForm viewer control...so I am not sure why this is happening. is there any samples available for using the Report Web viewer control in an aspx page

Thanks

Krishna



Answer this question

Report Viewer control and ASPX

  • MiniMichael

    Hello,

    I am also getting the following error when viewing a report through an ASP.NET 2.0 Report Viewer control:

    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.

    I seem to be getting it when retrieving a large amount of data. When I run the same report for a subset of the data, the report runs fine.

    Any ideas

    Thanks in advance...

    Brian



  • hendrikswa

    I am having same problem. I am using DNS name.. Reports are not large but am still getting this error. Help please

  • George Lowe

    This happens, when you are using a IP-address for the SQL Server Reporting Server once I started using DNS/Machine name the error went away - Krishna
  • Open2Knight

    Hello ,Krishnaswin

    How do you fix the issue , can you explain more

    How to use the DNS/Machine name ,i do not catch your meaning .

    lizzy


  • Stoyko Kostov

    Hello,Kishnawin

    I use the method as you suggested ,but still have the issue .

    Hope some one can give some suggestion


  • Petri Oksanen

    Same problem when using Report Builder inside of SQL Reporting Services with Service Pack. The SRS Product doesn't seem to scale well to large reports.


  • Report Viewer control and ASPX