1
Vote

Test case - For security reasons DTD is prohibited in this XML document

description

Normal test works fine but creating a test case results in:
 
System.Xml.XmlException: 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.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res, String arg)
at System.Xml.XmlTextReaderImpl.ParseDoctypeDecl()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at Microsoft.XmlDiffPatch.XmlDiffDocument.LoadChildNodes(XmlDiffParentNode parent, XmlReader reader, Boolean bEmptyElement)
at Microsoft.XmlDiffPatch.XmlDiffDocument.Load(XmlReader reader, XmlHash xmlHash)
at Microsoft.XmlDiffPatch.XmlDiff.Compare(XmlReader sourceReader, XmlReader changedReader, XmlWriter diffgramWriter)
at Storm.Utilities.GenHelper.compareXml(String xml1, String xml2)
at Storm.Utilities.GenHelper.getDiffIfError(String xml1, String xml2)
at Storm.Types.TestRunnerFS.RenderResults(MethodTestCase tc)
at <StartupCode$Storm>.$Type.testrunner.clo@230.Invoke(RunWorkerCompletedEventArgs args)
at <StartupCode$FSharp.Core>.$Event.v@67.Invoke(Object , Arg )
at Microsoft.FSharp.Control.Handler1.Invoke(Object , A )
at Microsoft.FSharp.Control.Event
1.Trigger(Arg arg)
at Microsoft.FSharp.Control.EventModule.clo@73.Invoke(Arg arg0)
at <StartupCode$Storm>.$Type.bgworker.run@51@55_1.Invoke(Object sender, RunWorkerCompletedEventArgs e)
at System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted(RunWorkerCompletedEventArgs e)
at System.ComponentModel.BackgroundWorker.AsyncOperationCompleted(Object arg)

comments