I keep getting this error after i try to make use of a MS Access database during my application:
The 'Microsoft.Jet.OLEDB.4.0' provider isn't registered around the local machine.
After Google'ing the mistake for some time I found observe that this can be a problem when running the applying in 64-bit mode. Basically ended up being to compile the application in 32-bit it might work, and so i went to discover how to get it done. I acquired so far as the advanced producing options during my projects configurations page, however I additionally read which i can't even set the CPU key in Visual Fundamental 2008 Express.
is true? Can there be not a way I'm able to set my project to operate in 32-bit mode? The truth is, Used to do an identical factor having a database a couple of several weeks ago which labored, and that i don't remember within the smallest things i did.
Can anybody shed some light? Thanks.
EDIT: After considering my old projects producing options, yes, it is looking for
Active (x86) Platform, but this method isn't turning up during my new project. Strange.
EDIT 2: Here is a screenshot. Top the first is that old project using the 32-bit running option and also the bottom may be the brand new one without individuals options.
I've not used VB Express myself (I personally use Visual Studio Professional) however i figure the choices is going to be similar. Once you open the answer (or project):
- Open the Project Qualities. (Right click on the Project within the solution explorer and choose qualities).
- Click the Build tab.
- Within the Platform Target drop lower, choose x86.
- Click Save.
You need to now have the ability to build the applying and pressure it to 32-bit.
If you want to possess separate develops (one for just about any CPU and something for x86):
- Click the Build menu.
- Click Configuration Manager...
- Within the Active Solution platorm drop lower click
- Within the Type or choose the brand new platform drop lower choose x86.
- Make certain Create new project platforms is checked.
- Click OK.
Now you can choose from the Any CPU or x86 CPU types easily. Just choose the woking platform type in the Standard plugin.
If you want to change a mature program a treadmill you cannot compile, see my answer on how to force applications with the Any CPU flag to run as 32-bit.
You could use MSbuild it's free and allows you any configuration option open to the complier.