0

I'm beginner in C# and Oracle database programming. I want to write simple windows application to connect to an Oracle database. I use Orcale.DataAccess ver 2.0 but when I run my program I get this error:

error

How can I resolve this error?

JAL
  • 41,701
  • 23
  • 172
  • 300
user3671271
  • 551
  • 2
  • 8
  • 21
  • 2
    Show your work and exception as a text, not image. – Soner Gönül Oct 26 '15 at 10:50
  • Did you copy Oracle.DataAccess.dll to your bin folder or using GAC reference? – Kemal Kefeli Oct 26 '15 at 10:52
  • @SonerGönül thanks my friend,but i want show all event accord in my vs. – user3671271 Oct 26 '15 at 10:52
  • @KemalKefeli i use add reference in vs and add that dll to my project and i see that file in reference in solution explorer – user3671271 Oct 26 '15 at 10:54
  • This exception is mostly related to x64 vs x86 issues. Consider installing both clients as suggested in [this answer](http://stackoverflow.com/a/24120100/5280641). – Neria Nachum Oct 26 '15 at 11:05
  • So, maybe there is a problem with your Oracle Client or ODAC installation. I have a long shot suggestion, build your solution, go to your project's bin directory, delete Oracle.DataAccess.dll and then run exe file. – Kemal Kefeli Oct 26 '15 at 11:05

0 Answers0