My project is 64-bit.
I had to change the link to the dll, adding a 64-bit version. Creating a folder in my project called "x64" and adding a dll with the property: Copy to output directory: Always copy
I found a solution in Oracle readme:
Use the following steps to have your application use the 64-bit version .... dll:
- Right-click the Visual Studio project.
- Choose Add → New Folder
- Name the folder x64.
- Right click on newly created x64 folder
- Choose Add → Existing Item
- Go to ... \ bin \ x64 in the directory of your solution project.
- Choose .... 64bit.dll
- Click the Add button
- Left-click on the newly added .... dll in the x64 folder.
- In the properties window, set "Copy to output directory" to "Always copy."
For x86 target applications, specify the x86 folder and add assemblies from ... \ bin \ x86.
source share