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

Solved
PouleFauna Posted messages 138 Status Member -  
PouleFauna Posted messages 138 Status Member -
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 answers

  1. NHenry Posted messages 15235 Registration date   Status Moderator 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
  2. PouleFauna Posted messages 138 Status Member
     
    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
  3. PouleFauna Posted messages 138 Status Member
     
    It works!!! Thank you very much!!!

    --
    _________________________________________________

    PouleFauna
    0