I was getting that error in my test project. The problem was that I was opening Visual Studio from a command line that had an old PATH. After opening everything fresh, it worked.
Check the PATH from your code, and make sure the oracle folder is in the PATH.