欢迎投稿

今日深度:

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

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


<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文件就行了

www.htsjk.Com true http://www.htsjk.com/SQLite/27356.html NewsArticle c# 指定的存储区提供程序在配置中找不到,或者无效, system.data DbProviderFactories remove invariant ="System.Data.SQLite" / add name ="SQLite Data Provider" invariant ="System.Data.SQLite" description =".Net Framework...
相关文章
    暂无相关文章
评论暂时关闭