ReferenceNullException

Topics: Developer Forum
May 31, 2011 at 2:54 PM

Hi,

I do not know whether I am at the right place here. I got a big problem with the HAP:

bei HtmlAgilityPack.HtmlDocument.ReadDocumentEncoding(HtmlNode node) in C:\Source\htmlagilitypack\Trunk\HtmlAgilityPack\HtmlDocument.cs:Zeile 1916.
   bei HtmlAgilityPack.HtmlDocument.PushNodeEnd(Int32 index, Boolean close) in C:\Source\htmlagilitypack\Trunk\HtmlAgilityPack\HtmlDocument.cs:Zeile 1805.
   bei HtmlAgilityPack.HtmlDocument.Parse() in C:\Source\htmlagilitypack\Trunk\HtmlAgilityPack\HtmlDocument.cs:Zeile 1492.
   bei HtmlAgilityPack.HtmlDocument.Load(TextReader reader) in C:\Source\htmlagilitypack\Trunk\HtmlAgilityPack\HtmlDocument.cs:Zeile 769.

I have only tried to load a HttpWebResponse-ResponseStream into my HtmlDocument. Why do I get this Exception. Other responses have no problem to be loaded into a HtmlDocument.

Please give me a hint. Thx