This project has moved. For the latest updates, please go here.

Gettin error with the Load Functionality

Topics: Developer Forum
Feb 10, 2012 at 5:16 PM

I saw the following code in one of the sites and tried it for my Windows Phone 7 project.


            HtmlWeb web = new HtmlWeb();
            HtmlDocument doc = new HtmlAgilityPack.HtmlDocument();
            doc = web.Load("");
            HtmlNode rateNode = doc.DocumentNode.SelectSingleNode("//div[@id='rate']");
            string rate = rateNode.InnerText;

What i am getting is the following error:

Error    1    'HtmlAgilityPack.HtmlWeb' does not contain a definition for 'Load' and no extension method 'Load' accepting a first argument of type 'HtmlAgilityPack.HtmlWeb' could be found (are you missing a using directive or an assembly reference?)

I am using Visual Studio 2010 Express for Windows Phone

Please help.

Jan 29, 2013 at 1:11 PM

Do you solve your problem? 

I have this same =(