與HTML敏捷包錯誤,當我調試代碼,並得到:其中htmldoc =新的HTML文檔(); 所以它會找到一個文件HtmlDocument.cs 這是一個錯誤,我該如何解決它?htmlagilitypack錯誤當我來到htmldocument
string Url = "http://www.mittanbud.no/bedriftsok/?q=Baderom";
var htmlDoc = new HtmlDocument();
htmlDoc.OptionReadEncoding = false;
var request = (HttpWebRequest)WebRequest.Create(Url);
request.Method = "GET";
using (var response = (HttpWebResponse)request.GetResponse())
{
using (var stream = response.GetResponseStream())
{
htmlDoc.Load(stream, Encoding.UTF8);
}
}
你得到的錯誤是什麼? – jordanhill123 2013-03-19 08:03:25
這個,我弄錯了:http://postimage.org/image/62rw2m8g1/ – Max 2013-03-19 08:09:57
你發佈的圖片是沒用的。請發佈完整的異常堆棧。我個人對你發佈的代碼沒有錯誤,它工作正常。 – 2013-03-19 11:17:57