We are using umbraco 4.7.0. We tried using HTML AgilityPack to entisize a part of html data. The time we declared HTMLAgilityPack.HTMLDocument we got ambigious reference. Inside umbraco dll's in two places they are using HTMLAgilityPack with two different versions. How to use agility pack in our aspx.cs files then?
Which version of the HtmlAgilityPack assembly are you using?
With Umbraco 4.7.x you are better using v1.3, as the "umbraco.MacroEngine" project binds to that version specifically. This will be resolved in Umbraco 4.8+, as it will compile against HtmlAgilityPack v1.4.
HTMLAgilityPack Ambigious reference error
Hi All,
We are using umbraco 4.7.0. We tried using HTML AgilityPack to entisize a part of html data. The time we declared HTMLAgilityPack.HTMLDocument we got ambigious reference. Inside umbraco dll's in two places they are using HTMLAgilityPack with two different versions. How to use agility pack in our aspx.cs files then?
Thanks
Karthik
Hi Karthik,
Which version of the HtmlAgilityPack assembly are you using?
With Umbraco 4.7.x you are better using v1.3, as the "umbraco.MacroEngine" project binds to that version specifically. This will be resolved in Umbraco 4.8+, as it will compile against HtmlAgilityPack v1.4.
Cheers, Lee.
Hi Lee,
I face the same problem, When I try to create an object of HtmlEntity class like below,
HtmlAgilityPack.HtmlEntity htmlEntity = new HtmlAgilityPack.HtmlEntity();
i get an ambigous reference error.
How could i solve this? When i look at my project I could find 2 DLL's that contains word "HtmlAgilityPack"
1. Fizzler.Systems.HtmlAgilityPack.dll
2. HtmlAgilityPack.dll
Both of these are in bin folder.
I want to use entitize and deentitize methods of HtmlEntity class.
Thanks
Santhosh
is working on a reply...