JetEntityFrameworkProvider icon indicating copy to clipboard operation
JetEntityFrameworkProvider copied to clipboard

problem with 64 bit OLEDB

Open yosimaurer opened this issue 4 years ago • 3 comments
trafficstars

I had a problem running an application on machines with Access 64 bit. This was obviously because the application targeted Any CPU which by default runs as 86 bit app. Therefore Microsoft.Ace.olddb.16.0 failed to open.

After building a version of the application that targeted 64 bit I got a different error:

System.BadImageFormatException Could not load file or assembly 'JetEntityFrameWorkProvider, Version 6.0.0.0 ...

After the bulid I saw the following warning in visual studio:

There was a mismatch between the processor architecture of the project being built "AMD64" and the processor architecture of the reference "JetEntityFrameworkProvider, Version=6.0.0.0, Culture=neutral, PublicKeyToken=756cf6beb8fe7b41, processorArchitecture=x86", "x86". This mismatch may cause runtime failures.

yosimaurer avatar Feb 23 '21 15:02 yosimaurer

The latest version (check Include prerelease in NuGet) should be compiled for AnyCPU

bubibubi avatar Feb 23 '21 16:02 bubibubi

I am using version 6.1.4 Should I use 6.2.0 r.c?

yosimaurer avatar Feb 23 '21 17:02 yosimaurer

I solved the same issue using 6.1.5-rc3 6.2.0 is for EF 6.2

bubibubi avatar Feb 23 '21 17:02 bubibubi