vs 2017 works great but vs2022 gives 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine

Jay O'Brien 71 Reputation points

My VS 2017 apps work fine in debug mode. However, when I try it in VS2022 I receive 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine. My desktop programs work in VS2022, just not my asp.net programs

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,403 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. SurferOnWww 1,626 Reputation points

    Are you trying to connect the VS2022 to the Access using the ACE? Please note that the VS2017 is 32-bit and VS2022 is 64-bit. The ACE has 32-bit and 64-bit versions which cannot co-exist in a PC. Your ACE is 32-bit if you could use it with the VS2017. Probably that's why.

  2. zanaty zanati 0 Reputation points

    Screenshot 2023-03-08 063158