首页 > 数据库技术 > 详细

Could not create the driver from NHibernate.Driver.SQLite20Driver

时间:2014-12-30 18:54:47      阅读:512      评论:0      收藏:0      [点我收藏+]

使用NHibernate连接Sqlite语句,版本为.net3.5。 升级.net 4.0出现异常,提示”Could not create the driver from NHibernate.Driver.SQLite20Driver“。

方法1:去网上找一个.net 4.0 的兼容版本。

方法2:在app.config或者web.config中加上下面的配置,即可正常运行:

<configuration>
  <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0"/>
  </startup>
</configuration>


  <startup  useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
  </startup>
 

 

Could not create the driver from NHibernate.Driver.SQLite20Driver

原文:http://www.cnblogs.com/vonly/p/4194123.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!