Note that there are some explanatory texts on larger screens.

plurals
  1. POAdd-BindingRedirect not resolving NuGet vs issue
    text
    copied!<p>So I am having a problem like I see other posters have had after using NuGet to install FluentNhibernate:</p> <p><strong>ERROR</strong></p> <pre><code>Could not load file or assembly 'NHibernate, Version=3.0.0.2001, Culture=neutral, PublicKeyToken=aa95f207798dfdb4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) </code></pre> <p>I saw that on stackOverflow answers and other blogs the answer was:</p> <pre><code>Add-BindingRedirect </code></pre> <p>However, this has not resolved my issue and all the results of running that command is:</p> <pre><code>PM&gt; Add-BindingRedirect Name OldVersion NewVersion ---- ---------- ---------- NHibernate 0.0.0.0-3.0.0.4000 3.0.0.4000 </code></pre> <p>When I am installing Fluent Nhibernate from NuGet, it says its dependencies are Nhibernate 3.0.0.2001 but it installs Nhibernate 3.0.0.4000</p> <p>What am I doing wrong?</p> <p><strong>UPDATE</strong></p> <p>I see that it adds the following section in the node:</p> <pre><code> &lt;dependentAssembly&gt; &lt;assemblyIdentity name="NHibernate" publicKeyToken="aa95f207798dfdb4" culture="neutral" /&gt; &lt;bindingRedirect oldVersion="0.0.0.0-3.0.0.4000" newVersion="3.0.0.4000" /&gt; &lt;/dependentAssembly&gt; </code></pre> <p>However, I still get the same error. Which just doesn't look right. If Fluent is wanting 3.0.0.2001 and NHibernate 3.0.0.4000 was installed, this binding redirect, doesn't appear to me to be correct.</p> <p>To be as specific as possible. I just used NuGet to install Fluent Nhibernate in both my Web Project and a C# library project for tests. Then ran a test using NUnit which continues to give me this error. </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload