NHibernate版本不一致问题

项目中遇到以下问题:

 Castle.Facilities.NHibernateIntegration, Version=1.1.0.0 对应 NHibernate版本:2.1.2.4000 

目前NHibernate.Linq对应NHibernate版本: 2.1.0.4000

在web.config中加入

  <runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
            <dependentAssembly>
                <assemblyIdentity name="NHibernate"
                                  publicKeyToken="aa95f207798dfdb4"
                                  culture="neutral" />
                <bindingRedirect oldVersion="2.1.0.4000" newVersion="2.1.2.4000" />
      </dependentAssembly>    
    </assemblyBinding>
  </runtime>
 

 


你可能感兴趣的:(Hibernate)