需要解决这个错误
使用 Oledb 连接到 MS Access DB。
当 OleDbConnection 类的 Open 函数被称为
“‘Microsoft.Jet.OLEDB.4.0’提供程序未在本地计算机上注册”时,我收到以下错误。
Using Oledb to connect to an MS Access DB.
I get the following error when the Open Function of the OleDbConnection class is called
"The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local machine."
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我猜你的操作系统是 64 位,但 Microsoft Jet 不支持 64 位。要解决此问题,您需要强制应用程序使用 32 位,在高级编译器选项中将目标 CPU 更改为 x86。
请查看此链接了解更多详情。
I guess your OS 64-bit but Microsoft Jet does not support 64-bit. TO resolve this you need force your application to use the 32 bit change the target CPU to x86 in the advanced compiler options.
Please check out this link for more details.
我突然出现了同样的问题,这不是“Jet”问题,因为它以前有效,然后停止工作。事实证明,该网站运行的应用程序池已将“启用 32 位应用程序”更改为“False”。当我改回“True”时,OleDb 错误消失了。
I had this same problem occur all of a sudden and it wasn't a "Jet" problem as it previously worked, and then stopped working. As it turned out, the application pool that the site was running under had "Enable 32-bit applications" changed to "False". When I changed back to "True", the OleDb error went away.