Neither XmlDocument nor HtmlDocument (from the HtmlAgilityPack library) want to work normally with the html page. Here is an example:
HtmlDocument document = new HtmlDocument(); //document.Load(page); Console.WriteLine("checkpoint"); Everything is normal here. The console reads "checkpoint" quietly. But as soon as I uncomment document.Load(page); :
HtmlDocument document = new HtmlDocument(); document.Load(page); Console.WriteLine("checkpoint"); nothing is output and in general, everything after document.Load(page); as if disappearing from the program. Why is this happening?
PS In my WPF application on windows, everything is working fine.
pagewhat type of variable? - Eugene Krivenjastring. Contains all page code. - Puro