Frage

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'

War es hilfreich?

Lösung 2

I install HtmlAgilityPack from NuGet Before Abot and problem solved!

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

Andere Tipps

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

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top