I'm getting weird errors during transformations --
"System.Net.WebException. The remote server returned an error: (500)
Internal Server Error."
I'm on the 1.0 Framework. I've looked through the stack trace and it seems
to be happending at a call to .Transform as follows (see stack trace below):
oXslTransform.Transform(myXPathDocument,plist,stWr ite);
These XML documents are 3rd party and include a doctype that refers to a dtd
across the network. I'm also getting these sometimes in IE, so it seems
that the vendors DTD is timing out. Is there anyway to disable the
validation of the document, so it doesn't try to call out to the DTD?
Thanks,
Galen
Here's a part of the stack trace:
at System.Net.HttpWebRequest.CheckFinalStatus()
at System.Net.HttpWebRequest.EndGetResponse(IAsyncRes ult asyncResult)
at System.Net.HttpWebRequest.GetResponse()
at System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials
credentials)
at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials
credentials)
at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type
ofObjectToReturn)
at System.Xml.Schema.DtdParser.ParseDocTypeDecl()
at System.Xml.Schema.DtdParser.Parse()
at System.Xml.XmlTextReader.ParseDtd(XmlScanner scanner)
at System.Xml.XmlTextReader.ParseTag()
at System.Xml.XmlTextReader.ParseRoot()
at System.Xml.XmlTextReader.Read()
at System.Xml.XmlValidatingReader.ReadWithCollectText Token()
at System.Xml.XmlValidatingReader.Read()
at System.Xml.XPath.XPathDocument.ReadChildNodes(XPat hContainer parent,
String parentBaseUri, XmlReader reader, PositionInfo positionInfo)
at System.Xml.XPath.XPathDocument.Load(XmlReader reader)
at System.Xml.XPath.XPathDocument.Init(XmlReader reader)
at System.Xml.XPath.XPathDocument..ctor(TextReader reader)