If the Oracle version of this machine is a 64-bit system, the following error is reported in the time the Oracle data is called:
"Failed to load file or assembly" oracle.dataaccess, version=2.112.1.0, culture=neutral, publickeytoken=89b483f429c47342 "or one of its dependencies. An attempt was made to load an improperly formatted program "
The main reason is that the server is different from the native Oracle version.
Solution:
1. Replace the project's reference to this DLL with a 64-bit oracle.dataaccess
2. Modify the project build target, select "Build" "Target platform" as X64
Debug again, OK
Reference: Tranquility caused far failed to load file or assembly "oracle.dataaccess, version=2.112.1.0, culture=neutral, publickeytoken=89b483f429c47342"
Failed to load file or assembly "oracle.dataaccess, version=2.112.1.0, culture=neutral, publickeytoken=89b483f429c47342"