Я использую HTML Agility Pack библиотеку для чтения HTML страницы, но перед этой ошибки:не может прочитать данные из транспортного соединения соединение было закрыто
Unable to read data from the transport connection the connection was closed.
Вот мой код:
var getHtmlWeb = new HtmlWeb();
for (int j = 0; j < arr.Length; j++)
{
var document = getHtmlWeb.Load(arr[j].ToString()); // error line
}
как можно Я продлеваю время ожидания?
http://stackoverflow.com/questions/6574109/how-to-timeout-a-request-using-html-agility-pack – bansi
спасибо за ответ @ bansi У меня есть мое решение здесь: http://refactoringaspnet.blogspot.in/2010/04/using-htmlagilitypack-to-get-and-post.html –