Could not load file or assembly "NHibernate, Version = 3.3.1.4000, Culture = neutral, PublicKeyToken = aa95f207798dfdb4"

I added the latest version of NHibernate but this error occurs when compiling. Someone can tell me how to fix the problem. In web.config

I also added:

 <assemblyIdentity name="NHibernate" publicKeyToken="aa95f207798dfdb4" culture="neutral" />
 <bindingRedirect oldVersion="0.0.0.0-3.0.0.4000" newVersion="4.0.0.4000" />

      

+3


source to share


1 answer


There seem to be projects / dlls referencing version 3.3, so your redirect is not enough:

<bindingRedirect oldVersion="0.0.0.0-3.0.0.4000" newVersion="4.0.0.4000" />

      

This should work:



 <bindingRedirect oldVersion="0.0.0.0-3.3.1.4000" newVersion="4.0.0.4000" />

      

see the range now includes the missing version 3.3.1.4000 not only 3.0.0.4000

+3


source







All Articles