This project has moved and is read-only. For the latest updates, please go here.

Gettin error with the Load Functionality

Topics: Developer Forum
Feb 10, 2012 at 6: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 2:11 PM

Do you solve your problem? 

I have this same =(