Quantcast
Channel: htmlagilitypack Forum Rss Feed
Viewing all articles
Browse latest Browse all 655

New Post: modify output on the fly

$
0
0

Bump for this issue. I'm seeing it myself.

Using .NET 4.5 and HtmlAgilityPack 1.4.6:

 

using (var client = new WebClient())using (var stream = client.OpenRead(uri))
{var html = new HtmlDocument();
    html.Load(stream); // throws here// ...
}

I checked in WireShark, and the content was transferred across the wire successfully and in full.

The exception is ArgumentException: Stream was not readable.

mscorlib.dll!System.IO.StreamReader.StreamReader(System.IO.Stream stream, System.Text.Encoding encoding, bool detectEncodingFromByteOrderMarks, int bufferSize, bool leaveOpen) + 0x168 bytes
mscorlib.dll!System.IO.StreamReader.StreamReader(System.IO.Stream stream, System.Text.Encoding encoding) + 0x1d bytes  
HtmlAgilityPack.dll!HtmlAgilityPack.HtmlDocument.Load(System.IO.Stream stream) Line 517 + 0x40 bytes C#


Viewing all articles
Browse latest Browse all 655

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>