The 'Microsoft.Jet.OLEDB.4.0' provider is not registered.
Solved
PouleFauna
Posted messages
138
Status
Membre
-
PouleFauna Posted messages 138 Status Membre -
PouleFauna Posted messages 138 Status Membre -
Hello,
I am developing a contact application on Visual Studio 2019. When I pressed the "Start" button, I was unpleasantly surprised to see that my application did not launch and that this text appeared
I then went to look online and did what the vast majority of forums suggested: Install Microsoft.Jet.OLEDB.12.0, but that did not work. Thank you for your help.
--
_________________________________________________
PouleFauna
I am developing a contact application on Visual Studio 2019. When I pressed the "Start" button, I was unpleasantly surprised to see that my application did not launch and that this text appeared
System.InvalidOperationException: 'The provider 'Microsoft.Jet.OLEDB.4.0' is not registered on the local machine.'
I then went to look online and did what the vast majority of forums suggested: Install Microsoft.Jet.OLEDB.12.0, but that did not work. Thank you for your help.
--
_________________________________________________
PouleFauna
3 réponses
From memory, this error may appear if you compile in AnyCPU or x64, try forcing the compilation to x86 (32 bits).
--
I mainly work in VB6 and VB.NET, with a bit of C#, but moderation often brings me to other languages.
In VB.NET, remember to enable "Option Explicit" and "Option Strict".
--
I mainly work in VB6 and VB.NET, with a bit of C#, but moderation often brings me to other languages.
In VB.NET, remember to enable "Option Explicit" and "Option Strict".
Thank you for your response, but since I am a novice, could you explain to me how to force the compilation in x86???
--
_________________________________________________
PouleFauna
--
_________________________________________________
PouleFauna
I don't have an IDE on this PC, but I think the method should be similar:
https://stackoverflow.com/questions/6399207/how-to-set-a-project-output-platform-to-x86-in-visual-studio-2010
https://docs.microsoft.com/en-us/visualstudio/ide/how-to-configure-projects-to-target-platforms?view=vs-2022
https://stackoverflow.com/questions/6399207/how-to-set-a-project-output-platform-to-x86-in-visual-studio-2010
https://docs.microsoft.com/en-us/visualstudio/ide/how-to-configure-projects-to-target-platforms?view=vs-2022