Error while adding class reference HtmlAgilityPack to class
I am getting an error adding this to my class, does anyone know a solution for this? Using the framework 4.5.
Could not load file or assembly 'HtmlAgilityPack, Version=1.4.9.0, Culture=neutral, PublicKeyToken=bd319b19eaf3b43a' or one of its dependencies. The located assembly manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
I have this in my .config package
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="HtmlAgilityPack" version="1.4.9.0" targetFramework="net45" />
</packages>
packages give an error that it is not declared
I tried to add it for debugging, enable it locally, but nothing seems to work to make it work.
Update:
still the same error corrected it like this, but not sure if it is correct:
<configuration>
<packages>
<package id="HtmlAgilityPack" version="1.4.9.0" targetFramework="net45" />
</packages>
<dependentAssembly>
<assemblyIdentity name="HtmlAgilityPack" publicKeyToken="bd319b19eaf3b43a" culture="neutral" />
<bindingRedirect oldVersion="1.4.5.0-1.4.7.0" newVersion="1.4.9.0" />
</dependentAssembly>
</configuration>
+3
source to share
No one has answered this question yet
Check out similar questions: