My project is specificly 64bit.
I had to change a Reference to a dll, by adding the 64bit version.
Creating a folder in my project called "x64" and adding the dll, with the property: Copy to Output Directory : Copy always
I found the solution in an Oracle readme:
Use the following steps for your application to use the 64-bit version of ....dll:
- Right click on the Visual Studio project.
- Select Add -> New Folder
- Name the folder x64.
- Right click on the newly created x64 folder
- Select Add -> Existing Item
- Browse to ...\bin\x64 under your project solution directory.
- Choose ....64bit.dll
- Click the 'Add' button
- Left click the newly added ....dll in the x64 folder
- In the properties window, set 'Copy To Output Directory' to 'Copy Always'.
For x86 targeted applications, name the folder x86 and add assemblies from the
...\bin\x86 folder.