Khi khi ứng dụng hoặc website của bạn được upload chạy trên server có OS 64bit có thể bạn gặp lỗi:
The ‘Microsoft.Jet.OLEDB.4.0’ provider is not registered on the local machine
Nguyên nhân bởi vì, Jet driver jet.OLEDB.4.0 driver không hỗ trợ trên OS 64bit, để khắc phục bạn có thể làm theo cách sau.
Cách 1: sửa lỗi The ‘Microsoft.Jet.OLEDB.4.0’ provider is not registered on the local machine
mở IIS manager chọn Application Pools chọn pool webiste đang hoạt động sau đó click phải chuột chọn Advanced Settings trong mục: General đặt giá trị “Enable 32-Bit Applications” sang “True“
Cách 2: khắc phục lỗi The ‘Microsoft.Jet.OLEDB.4.0’ provider is not registered on the local machine
Download Microsoft Access Database Engine 2010 Redistributable từ link sau:
https://www.microsoft.com/en-us/download/details.aspx?id=13255
sau khi donwload và cài đặt lên server, cập nhật config của website hoặc ứng dụng “Provider=Microsoft.Jet.OLEDB.4.0; “ sang “Provider=Microsoft.ACE.OLEDB.12.0;”
Sau đó thực hiện biên dịch và chạy lại ứng dụng của bạn