The type or namespace name 'HtmlAgilityPack' could not be found

Dec 1, 2009 at 7:34 PM

Sorry for the newbie question. I added a

using HtmlAgilityPack;
to the class and included the dll in the bin directory yet I still get this error.
Dec 1, 2009 at 8:03 PM

Have you added a reference in your project to the HAP dll or HAP project?

Dec 1, 2009 at 8:22 PM

Dang. I thought having it in the bin was enough...thanks!!!

Dec 2, 2009 at 11:32 AM

Only if it's a web site type of project. For everything else, it must be referenced.

Feb 13, 2012 at 4:19 AM

Hello,

 

I am getting this same error and I have checked and implemented your solution above but the error is still there. It would really help if you could please advise.

 

Compiler Error Message: CS0246: The type or namespace name 'HtmlAgilityPack' could not be found (are you missing a using directive or an assembly reference?)

 

Many thanks,

Dipti

Aug 5, 2012 at 9:28 PM

i have the reference and am having the same problem....not sure why, it seems it should be easy , i am now using vs 2010, i have tried 2008 with not luck either