Issue: “The microsoft.ace.oledb.12.0 provider is not registered”
Solution:
Download and install “AccessDatabaseEngine.exe”
https://www.microsoft.com/en-us/download/details.aspx?id=13255
Now open VS and follow the below steps.
To do so,right click on the project and click Properties
Then click on Build and change the Platform target from Any CPU to x86.Recompile your program