The referenced NHibernate assembly version is inconsistent with the NHibernate version used by fluentnhibernate, resulting in a failure to load the file or assembly "NHibernate, version=3.0.0.2001 Error

Source: Internet
Author: User

This issue is caused by the fact that the referenced fluentnhibernate is using a different version of the NHibernate, and the version that you added is not the same. NuGet re-adds the latest version of Fluentnhibernate.

or add version redirection in the configuration file, new version adds the NHibernate version for itself, oldversion the version used for Fluentnhiberbate

<configuration>
<runtime>
<assemblybinding xmlns= "Urn:schemas-microsoft-com:asm.v1" >
<dependentAssembly>
<assemblyidentity name= "NHibernate" publickeytoken= "AA95F207798DFDB4"/>
<bindingredirect oldversion= "3.0.0.2001" newversion= "3.3.1.4000"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

The referenced NHibernate assembly version is inconsistent with the NHibernate version used by fluentnhibernate, resulting in a failure to load the file or assembly "NHibernate, version=3.0.0.2001 Error

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.