Problem with unregistered Jet 4.0 on Windows 7 64 bit

微笑、不失礼 提交于 2019-12-11 08:54:42

问题


I am trying to run a program, running on the hard drive, that uses Microsoft Jet OleDB to open and get info from an MS Access database. The problem is that when I try to run the program Visual Studio gives me this error:

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

I tried building the program to target "x86" instead of "Any CPU", but that did not work. I also looked in the Windows\SysWOW64 folder (the 64 bit equivalent to Windows\System32 folder on a 32 bit machine). Both msjet40.dll and msjetoledb40.dll files are in this folder, so I know the files exist. I also tried going to this folder in the command prompt and typing "regsvr32 " for both files. I saw this method used to register DLLs on another website.

My question is how do I get the Jet 4.0 utilities to work on my Windows 7 64 bit machine?


回答1:


Actually, the SysWOW64 directory is the 32 bit files. If you had a msjet40.dll and msjetoledb40.dll in System32, those would be 64 bit. As far as I am aware, there are no 64 bit versions of Jet around. I could be mistaken as there is a new 64 bit Office coming.




回答2:


Try changing the platform to "x86" for the application and all dependencies from the solution level, not the project level.



来源:https://stackoverflow.com/questions/1972015/problem-with-unregistered-jet-4-0-on-windows-7-64-bit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!