Reputation: 39
I have added the latest version of NHibernate but when I compile, this error occurs.
Somebody tell me how to solve the problem. In web.config
, I also added this:
<assemblyIdentity name="NHibernate" publicKeyToken="aa95f207798dfdb4" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.0.0.4000" newVersion="4.0.0.4000" />
Upvotes: 3
Views: 4883
Reputation: 123861
It seems, there are projects/dll 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 that the range is now including the missing verison 3.3.1.4000 not only 3.0.0.4000
Upvotes: 3