The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine.

by degiocuondi.com 23. March 2011 05:21

The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.InvalidOperationException: The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine.

Source Error: 

Line 36:             OleDbDataReader returnVal = null;
Line 37:             OleDbConnection conn = new OleDbConnection(ConnectionString);
Line 38:             conn.Open();
Line 39:             try
Line 40:             {

Cách sửa:

Thông thường chúng ta nghĩ ngay đến việc Microsoft.Jet.OLEDB.4.0, tui cũng loay hoay tìm cách cài Microsoft.Jet.OLEDB.4.0.

Vì lỗi này liên quan đến việc chạy trên hệ điều hành 64bit, tại sao ta không cấu hình cho web chạy trên 32 bit?

Cách giải quyết thật đơn giản, vào IIS, tìm pool chưa web, enable 32 bit application cho pool này.

Chạy lại chương trình, vấn đề được giải quyết nhanh gọn.

:)

 

Tags: , ,

Kinh nghiệm lập trình

Comments are closed

Tài trợ bởi Lạc Tâm. Hosting bởi ProHOST
Powered by BlogEngine.NET 2.5.0.6 - Old School Theme by n3o Web Designers

Menu

Bookmark and Share Log in
 

Tài trợ

Google Pagerank icon
Search Engine Optimization and SEO Tools
Submit Sitemap