An old C# program no longer works to read an MS-Access database through Jet.OLE.DB. Also a new compilation without any changes of the source code didn't help.
My laptop is running Windows 10 and the MS Office is LTSC Professional Plus 2021 32-bit.
I uninstalled Office LTSC 64-bit to install Office LTSC 32-bit and am trying to fix the problem installing the following recommended runtime packages:
- AccessDatabaseEngine.exe
- mdac28sdk.msi
- AccessRuntime2007.exe
- AccessRuntime_x86_en-us.exe
Our customer uses MS Access because he has linked thousands of macros in Excel with Access and switching to other databases is not possible.
It wasn't possible to use OLE in the current Windows 10 OS 64bit environment and that's why I switched to ODBC and it works.
I gave up using Visual Studio 2022 and switched to ACE for now because VS 2022 is really weird. I tried updating the current VS 2017 project but I couldn't select a NET Frame higher than 4.8. I created a new project and then I could select NET 6 or 7 if I would select "Windows Forms App" instead of "Windows Forms App (NET Framework)" but the toolbox is empty.