码迷,mamicode.com
首页 > 数据库 > 详细

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

时间:2014-12-30 23:18:08      阅读:326      评论:0      收藏:0      [点我收藏+]

标签:

Solution 1:
You are getting this error because the Jet driver you have installed need 32 bit OS & system to function, Here’s how to update to a new 64-bit compatible database engine:

1/ Download the Microsoft Access Database Engine 2010 Redistributable, you can choose from the 32 bit or 64 bit version depending on your machine and install it on your server

http://www.microsoft.com/download/en/details.aspx?id=13255

2/ in your application or website code, update the connection string from “Provider=Microsoft.Jet.OLEDB.4.0; “  to  “Provider=Microsoft.ACE.OLEDB.12.0;”

3/ recompile and run your application

Solution 2:
To resolve this issue open the project in Visual Studio then:
 
1. From the solution explorer right-click your project then click Properties
2. Click the Build tab
3. Change Platform target from: Any CPU to x86
4. Re-build your solution

REF:
http://stackoverflow.com/questions/1991643/microsoft-jet-oledb-4-0-provider-is-not-registered-on-the-local-machine
http://www.cnblogs.com/qinii/archive/2011/11/07/2240327.html
https://social.msdn.microsoft.com/Forums/en-US/d5b29496-d6a1-4ecf-b1a4-5550d80b84b6/microsoftjetoledb40-32bit-and-64bit?forum=adodotnetdataproviders
http://www.codeproject.com/Questions/464072/The-Microsoft-Jet-OLEDB-provider-is-not-regist
http://www.codicode.com/art/64_bit_version_of_microsoft_jet.aspx

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

标签:

原文地址:http://www.cnblogs.com/emanlee/p/4194682.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!