The Microsoft.Jet.OLEDB.4.0 provider is not registered on the local machine
Background
RNT Customer is designed to work on 32 or 64 bit PCs running Windows XP, Windows Vista, Windows 7 or Windows 8 Pro, 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.
Solution No. 1
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
The prompt should now show C:\>
You need to go to a special folder which would be something like
- c:\windows\system32
- c:\winnt\system32
- c:\windows\sysWOW64
Try typing each of these. If it says "The system cannot find the path specified, try the next one" e.g.
- cd c:\windows\sysWOW64
- cd c:\windows\system32
- cd c:\winnt\system32
When one of those doesn't cause an error, stop, you've found the correct folder.
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
*Solution No. 2 *
To resolve this issue open the project in Visual Studio then:
- From the solution explorer right-click your project then click Properties
- Click the Build tab
- Change Platform target from: Any CPU to x86
- Re-build your solution