문제

I Use "Abot" Version 1.2.3.1 but when I add "Html Agility" version 1.4.6.0 to project I get this error :

Error 38 Assembly 'Abot, Version=1.2.3.1, Culture=neutral, PublicKeyToken=null' uses 'HtmlAgilityPack, Version=1.4.7.0, Culture=neutral, PublicKeyToken=bd319b19eaf3b43a' which has a higher version than referenced assembly 'HtmlAgilityPack, Version=1.4.6.0, Culture=neutral, PublicKeyToken=bd319b19eaf3b43a'

도움이 되었습니까?

해결책 2

I install HtmlAgilityPack from NuGet Before Abot and problem solved!

1-
PM> Install-Package HtmlAgilityPack
2-
PM> Install-Package Abot

다른 팁

I know this is old but I just ran into this issue. That is, Abot did not work when I had added the latest version of HAP. But the workaround is simple, just use the CSQueryHyperlinkParser to parse links. Like so:

var crawler = new Abot.Crawler.PoliteWebCrawler(config, null, null, null, null, new Abot.Core.CSQueryHyperlinkParser(), null, null, null);

This solved my issue.

Abot uses a patched version of html agility pack since it would crash the process on certain types of html pages. See the issue documented here...

https://code.google.com/p/abot/issues/detail?id=77&can=1&q=htmlagilitypack

There is an issue on github to investigate if this was still a problem with the nuget version of html agility pack (which i'm pretty sure there is). So until the nuget version will not crash the host process Abot will like keep it's patched version of html agility pack.

https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fsjdirect%2Fabot%2Fissues%2F25&sa=D&sntz=1&usg=AFQjCNEpS2q4AuuejXdc3F8P2cVB-VtSSQ

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top