How to Connect to Access 2002 database on Windows 11 using OLEDB in VS2019

Michael Marchand 0 Reputation points
2023-01-20T01:52:37.82+00:00

I have written an application in C# using VS2019 that needs to connect to a Microsoft Access 2002 database. It works well on a Windows 10 machine but won't work on a Windows 11 machine. The error is that Microsoft.ACE.OLEDB.12.0 is not registered on the machine. I downloaded the redistributable but the Windows 11 machine says that this file could harm the system. What are my alternatives?

Windows for business | Windows Client for IT Pros | User experience | Other
Developer technologies | C#
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 44,766 Reputation points
    2023-01-23T08:51:44.8466667+00:00

    Hello there,

    A 64-bit version of the 'Microsoft Access Database Engine 2010 Redistributable' that will allow you to use the 'Microsoft.ACE.OLEDB.12.0' provider is available here:

    http://www.microsoft.com/en-us/download/details.aspx?id=13255

    The below thread discusses the same issue and you can try out some troubleshooting steps from this and see if that helps you to sort the Issue. https://learn.microsoft.com/en-us/answers/questions/296080/how-to-fix-microsoft-ace-oledb-12-0-provider-is-no

    Hope this resolves your Query !!

    --If the reply is helpful, please Upvote and Accept it as an answer–

    0 comments No comments

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.