码迷,mamicode.com
首页 > Windows程序 > 详细

c# 指定的存储区提供程序在配置中找不到,或者无效

时间:2014-12-16 20:57:28      阅读:1173      评论:0      收藏:0      [点我收藏+]

标签:des   style   blog   ar   io   color   sp   for   on   

<system.data>
    <DbProviderFactories>
      <remove invariant="System.Data.SQLite"/>
      <add name="SQLite Data Provider" invariant="System.Data.SQLite" description=".Net Framework Data Provider for SQLite" type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite"/>
    </DbProviderFactories>
  </system.data>
打開app.config,複製上面一段放在<connectionStrings>上面
 
運行可能會出現“找不到或無法加載已註冊的.net framework data provider
 
只要引用sqlite的dll文件就行了

c# 指定的存储区提供程序在配置中找不到,或者无效

标签:des   style   blog   ar   io   color   sp   for   on   

原文地址:http://www.cnblogs.com/shensigzs/p/4167926.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!