The Microsoft.Jet.OLEDB.4.0 provider is not registered on the local machine (zz)

来源:互联网 发布:卡盟主站源码 编辑:程序博客网 时间:2024/04/30 11:58

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


The Problem

Trying to run Amphis Customer on a 64-bit PC gives this error.

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


Background

//z 2012-08-08 11:18:49 IS2120@csdn.T2193700014[T54,L351,R11,V528]
Amphis Customer is designed to work on 32 or 64 bit PCs running Windows XP, Windows Vista or Windows 7 but on Windows XP 64 bit (and possibly other operating systems) it is possible that some of the Microsoft OLEDB DLLs have not been registered.


The Solution

The solution is to manually register those DLLs.

go to Start->Run and type cmd
this starts the Command Prompt
(also available from Start->Programs->Accessories->Command Prompt)

type cd .. and press return
type cd .. and press return again (keep doing this until the prompt shows :\> )

now you need to go to a special folder which might be c:\windows\system32 or it might be c:\winnt\system32 or it might be c:\windows\sysWOW64
try typing each of these eg
cd c:\windows\sysWOW64
(if it says The system cannot find the path specified, try the next one)
cd c:\windows\system32
cd c:\winnt\system32
when one of those doesn't cause an error, stop, you've found the correct folder.

now you need to register the OLE DB 4.0 DLLs by typing these commands and pressing return after each

regsvr32 Msjetoledb40.dll
regsvr32 Msjet40.dll
regsvr32 Mswstr10.dll
regsvr32 Msjter40.dll
regsvr32 Msjint40.dll

//z 2012-08-08 11:18:49 IS2120@csdn.T2193700014[T54,L351,R11,V528]