If you using Microsoft Visual Studio Community 2022 (64-bit) then IIS Express use 64 bit but for Microsoft.Jet.OLEDB.4.0 IIS Express use 64 bit not working so I change IIS Express 32 bit
Go to Tools > Options > Projects and Solutions > Web Project and Uncheck "Use the 64 bit version of IIS Express for web site and project"