Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27569

[RESOLVED] VS 2012 Express: x86 vs AnyCPU

$
0
0
I compliled a small project this morning which writes records to an MS Access database. I built the project on a 64 bit computer running Windows 7x64 and set the target framework to .NET Framework 4 and used AnyCPU for the target CPU. It worked fine on my computer and all the other Windows XP (32 bit) machines in the office. There is another user here who also runs Windows 7x64 on a 64 bit machine like mine. When he tried to save a record to the database we got an exception thrown with this message:

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

So I looked this up on the net and found that the solution to cure this is to rebuild the program and set the target CPU to x86, not AnyCPU. But that's kind of misleading because it worked fine on my desktop which is almost identical to the gentleman who had the problem. Anyway I did what the webpage suggested and it cured his problem. Although I'm not sure I understand why this fix wasn't required for my desktop, only his.

Viewing all articles
Browse latest Browse all 27569

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>