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
c # html-agility-pack


source to share


No one has answered this question yet

Check out similar questions:

707
Installed assembly manifest definition does not match assembly reference
219
Could not load file or assembly or one of its dependencies
199
Could not load file or assembly ... Parameter is invalid
176
Could not load file or assembly 'System.Web.Http 4.0.0 after upgrading from 2012 to 2013'
26
Could not load file or assembly Microsoft.CodeAnalysis
4
ambiguity in version of package references
1
Error starting application after updating EntityFramework from 4 to 6
1
Http error after upgrading to .net core 1.0
0
upgrade from mvc3 to mvc5 in my custom nopcommerce solution
-4
How to solve this error - can anyone suggest a solution?



All Articles
Loading...
X
Show
Funny
Dev
Pics