-
-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to find requested .Net Framework Data Provider in Visual Studio 2022 #924
Comments
Maybe because VS 2022 is 64 bit? |
Thanks for your replay. |
EricEJ SQL Server Compact 4.0 in GAC - Yes - 4.0.8876.1 SQL Server Compact 3.5 in GAC - No Sync Framework 2.1 SqlCe 3.5 provider - No SQLite ADO.NET Provider used: 3.31.1 I am dropping a zip in case you would like to see what the solution looks like. There is noting in it as I was just trying to get a SQLite provider added. Any thoughts or help would be greatly appreciated. Thanks! |
Have you double checked against the guide, ensuring exact same versions are used everywhere? |
Which Guide? Your EF6 workflow guide? If that is what you refer to, then yes, I have followed it explicitly. If it is another guide then I am not sure if I have double checked or not. |
@AeroClassics yes, that guide |
@AeroClassics and you followed the exact install instructions? |
Yes, multiple times. Life was easy under VS2015! I have gone so far as to be sure I removed everything using Programs and Features, plus going into the GAC and making sure everything was out of there. Hoping that I scrubbed the system enough. I have only installed what is called for in you workflow. I have not installed SQLite, by using something like the "Precompile Binaries for Windows Runtime" from https://www.sqlite.org/download.html. Not sure if that is needed or not. |
As a side note. I can connect to a SQLite database using the toolbox. It is just getting an ADO provider created that is the problem. |
@AhmedShamel I am unable to make this work in VS 2022, not surprising since the SQLite VS integration was not updated since 2015. I am able to use the "Simple SQLite" provider in VS 2019. |
@AeroClassics I am able to use the "Simple SQLite" provider in VS 2019, not in VS 2022. You can test by adding a data connection in Server Explorer in VS. |
I am also able to do that. What I have done to overcome this problem was to copy the required DLLs and App.config file from a working application. This let me move forward. Why I cannot do this from scratch, I don't know. But at least I am moving forward again. |
I was able to make it work with 2022, by installing the 64 bit version of the setup-bundle and manually modifying the Maybe it's worth updating the Wiki with the info about 2022, that needs another package and a different path for the machine.config. |
@maforget that really great news. Could you share a link to the page and the name of the package you installed? And your machine.config changes? |
I have updated the guide for VS 2022 https://github.com/ErikEJ/SqlCeToolbox/wiki/EF6-workflow-with-SQLite-DDEX-provider |
You already updated the wiki, so I guess you figured it out. But here I just installed this https://system.data.sqlite.org/downloads/1.0.115.5/sqlite-netFx46-setup-bundle-x64-2015-1.0.115.5.exe and just copy pasted the machine.config from the 32bit folder.
|
@maforget Thanks! You gotta love those assembly version numbers... |
First I want to think Mr. Erik for his wonderful extension.
I am using SQLite and SQL Server Compact Toolbox for the past two years.
However, I bought new laptop and install latest visual studio (VS2022),
latest SQLite and SQL Server Compact Toolbox (version 4.8.735.0),
and install sqlite-netFx46-setup-bundle-x86-2015-1.0.115.5,
but unfortunately get (SQLite EF6 DbProvider in GAC - No).
I read the instruction in this link https://github.com/ErikEJ/SqlCeToolbox/wiki/EF6-workflow-with-SQLite-DDEX-provider,
so I checked the machine.config file and it seems to be correct
Also l checked the app.config, also it seems to be correct
I tried to add the database to the project, and as expected I get the error (Unable to find requested .Net Framework Data Provider)
The text was updated successfully, but these errors were encountered: