System.InvalidOperationException: 'The 'Microsoft.ACE.OLEDB.NN.0' provider is not registered on the local machine.'

Kai 0 Reputation points
2024-07-30T11:00:42.1333333+00:00

This is not a repost of questions other people have asked. I have spent nearly a week reading all posts from other people and downloading this and that. I haven't downloaded the 32-bit version when I have 64-bit office, or any other problems that have been listed online. I have downloaded Microsoft Access Database Engine 2016, and it still seems to give me the same error. When I ran the code at school the number was 12.0 and it ran perfectly, although it seems that that version is no longer available for download. I am programming in VB with .NET windows application framework. How do I fix this.

VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,728 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Jiachen Li-MSFT 31,326 Reputation points Microsoft Vendor
    2024-07-31T02:18:02.0666667+00:00

    Hi @Kai,

    Right-click your project->Go to project properties->Complie tab->Target CPU Change between x86 , x64 and AnyCPU validate your selection and run debug to test.

    Best Regards.

    Jiachen Li


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.