Reputation: 3
I wrote an application with VS2008 on Windows XP, and produced an .EXE file.
This application will only run on Windows XP OS. It fails on Vista and Windows 7.
It gives an error saying that a Microsoft OLEDB JET 4.0 occurred.
I use Microsoft Access as a db in this app.
What should I do?
Upvotes: 0
Views: 908
Reputation: 30398
Where is the access database: is it in Program Files
? In which case you might be suffering from virtualization - on Windows Vista and 7 the operating system won't allow you to write to Program Files
, so it silently redirects you to another directory.
Upvotes: 0
Reputation: 3941
If your application is built for "any CPU" and you're running under x64 variants of Windows 7 and Vista, then try setting your build configuration to x86 (i.e. The 32 bit variant). There aren't x64 drivers for Access as far as I'm aware.
Good luck
Upvotes: 1