Closed relbraun closed 7 years ago
1: Did you follow the guide here? https://github.com/ErikEJ/SqlCeToolbox/wiki/EF6-workflow-with-SQLite-DDEX-provider
2: Please show the result from the About dialog in the Toolbox
3: please share your app.config/web.config and packages.config files (or even better, a repro project)
package.config: <?xml version="1.0" encoding="utf-8"?>
You need to marke the config file contents as code
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
<parameters>
<parameter value="v13.0" />
</parameters>
</defaultConnectionFactory>
<providers>
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
<provider invariantName="System.Data.SQLite.EF6" type="System.Data.SQLite.EF6.SQLiteProviderServices, System.Data.SQLite.EF6" />
</providers>
</entityFramework>
<system.data>
<DbProviderFactories>
<remove invariant="System.Data.SQLite.EF6" />
<add name="SQLite Data Provider (Entity Framework 6)" invariant="System.Data.SQLite.EF6" description=".NET Framework Data Provider for SQLite (Entity Framework 6)" type="System.Data.SQLite.EF6.SQLiteProviderFactory, System.Data.SQLite.EF6" />
<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>
</configuration>
Your DbProviderFacories section does not look like in the wiki post.
And also share packages.config and About from the Toolbox as well, please
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="EntityFramework" version="6.0.0" targetFramework="net452" />
<package id="Geckofx45" version="45.0.31" targetFramework="net452" />
<package id="System.Data.SQLite" version="1.0.105.0" targetFramework="net452" />
<package id="System.Data.SQLite.Core" version="1.0.105.0" targetFramework="net452" />
<package id="System.Data.SQLite.EF6" version="1.0.105.0" targetFramework="net452" />
<package id="System.Data.SQLite.Linq" version="1.0.105.0" targetFramework="net452" />
</packages>
Where can I find the About from the Toolbox?
Thank u for your patience
In the SQLite Toolbox, click the blue question mark icon - and take a screenshot
You should install the 105.2 SQLite packages, if you have installed the 105.2 tools! https://www.nuget.org/packages/System.Data.SQLite/ (see the sample packages.config in my wiki post)
SQLite EF6 DbProvider in GAC - NO!
So you did not install sqlite-netFx46-setup-bundle-x86-2015-1.0.105.2.exe properly (or restart VS after install - I have added this to the wiki post)
It is very odd, I have installed it now and restart the vs and it still tells me it is not installed
Restart PC??
nothing
Do you have any idea why SQLite EF6 DbProvider in GAC - NO?
Because it is not installed and registered in machine.config in C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config folder
how can I do it?
Run the installer as Admin?
I did it and nothing
I am unable to help you further, sorry, other than you trying on another PC...
@ErikEJ Thank u for your goodwill and efforts.
Getting this error while installing DDEX provider . Any help on how to resolve it ?
C:\Dev\sqlite-4-6-binary\sqlite-netFx46-binary-x64-2015-1.0.108.0>installer.exe Installer.exe: #001 @ 2018.04.14T02:43:32.4203848: Assembly: "Installer, Version=1.0.108.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139" Installer.exe: #002 @ 2018.04.14T02:43:32.4258851: LogFileName: "C:\Users\pkrish6\AppData\Local\Temp\Installer.exe.trace.tmp31D8.log" Installer.exe: #003 @ 2018.04.14T02:43:32.4263852: RegistryLogFileName:
Did you look at the log file? C:\Users\pkrish6\AppData\Local\Temp\Installer.exe.trace.tmp31D8.log
Please ask at system.data.sqlite
Same data in log file . No other new information. Tried installing again.
Installer.exe: #001 @ 2018.04.14T14:28:31.0876210: Assembly: "Installer, Version=1.0.108.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139"
Installer.exe: #002 @ 2018.04.14T14:28:31.0916181: LogFileName: "C:\Users\pkrish6\AppData\Local\Temp\Installer.exe.trace.tmp512E.log"
Installer.exe: #003 @ 2018.04.14T14:28:31.0916181: RegistryLogFileName:
I cannot assist, suggest you ask at system.data.sqlite.org
I followed the instructions how to install and connect to sqlite and I receiving an error message![image](https://user-images.githubusercontent.com/6196995/27378861-def17f8a-5681-11e7-9518-6362d11f2b22.png)
Steps to reproduce
Further technical details
Toolbox version: 4.7
Database engine: (SQlite)
Visual Studio 2017