Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • karthik 2 posts 22 karma points
    Jun 26, 2012 @ 12:59
    karthik
    0

    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

     

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Jul 08, 2012 @ 23:41
    Lee Kelleher
    0

    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.

  • Santhosh 58 posts 99 karma points
    Sep 07, 2012 @ 08:12
    Santhosh
    0

    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

     

Please Sign in or register to post replies

Write your reply to:

Draft