最近做了一个小软件,使用VS2010开发,用了EF和Sqlite.Net。

在客户机器上安装,运行时出现了错误:“The specified data store provider cannot be found, or is not valid”。查阅资料找到解决方案:

1、必须包含System.Data.SQLite.dll、System.Data.SQLite.Linq.dll两个dll;

2、在程序的config文件中添加如下内容

 <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>



相关文章:

  • 2021-10-24
  • 2022-12-23
  • 2021-08-01
  • 2021-07-12
  • 2021-06-14
  • 2021-09-26
  • 2022-12-23
猜你喜欢
  • 2021-07-31
  • 2021-07-31
  • 2021-08-10
  • 2021-10-27
  • 2021-09-08
相关资源
相似解决方案