The 'Microsoft.Jet.OLEDB.4.0' provider is not registered.

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

NHenry Posted messages 2511 Registration date   Status Modérateur Last intervention   387
 
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".
0
PouleFauna Posted messages 138 Status Membre
 
Thank you for your response, but since I am a novice, could you explain to me how to force the compilation in x86???

--
_________________________________________________

PouleFauna
0
NHenry Posted messages 2511 Registration date   Status Modérateur Last intervention   387
 
0
PouleFauna Posted messages 138 Status Membre
 
It works!!! Thank you very much!!!

--
_________________________________________________

PouleFauna
0