RubyPDF Blog .NET Microsoft.Jet.OLEDB.4.0 provider is not registered on the local machine

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

Today I got a email from my customer, he said when he ran DB2PDFX on Windows 7, he got the following message,
System.InvalidOperationException:The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine

After some search, I found the solution,

If you try and open an access database on a 64bit os you will get the following error. System.InvalidOperationException: The ‘Microsoft.Jet.OLEDB.4.0’ provider is not registered on the local machine. To prevent this open My Project -> compile -> advanced compiler options and set the target cpu to x86.

Otherwise get the new redistributable

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=C06B8369-60DD-4B64-A44B-84B371EDE16D&displaylang=en

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.