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

Webpage won't load in web.load method

Topics: Developer Forum, Project Management Forum, User Forum
Jan 26, 2012 at 10:24 AM

I am trying to load a wepage using the following code but the process hangs and times out at the web.load


 HtmlAgilityPack.HtmlWeb web = new HtmlWeb();
        HtmlAgilityPack.HtmlDocument doc = web.Load("");

        List<string> hrefTags = new List<string>();

        foreach (HtmlNode link in doc.DocumentNode.SelectNodes("//div[@class=\"boxInner\"]"))
            HtmlAttribute att = link.Attributes["href"];