Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with 64 bit OLEDB #58

Open
yosimaurer opened this issue Feb 23, 2021 · 3 comments
Open

problem with 64 bit OLEDB #58

yosimaurer opened this issue Feb 23, 2021 · 3 comments

Comments

@yosimaurer
Copy link

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.

@bubibubi
Copy link
Owner

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

@yosimaurer
Copy link
Author

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

@bubibubi
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants