This discussion is archived
2 Replies Latest reply: Nov 1, 2012 4:52 AM by Niels Jespersen RSS

Detect programatically if odp.net is unavailable, how?

Niels Jespersen Explorer
Currently Being Moderated
Hello all

ODP. 11.2.0.3, Win 7 x64, Oracle 11.2.0.2 RDBMS on Win2008R2. .net 4.0 Visual Studion 2010 Development Environment.

We hava a number of internal Winforms applications using odp.net. Mostly everything works fine, and for the odd error, exception handling gives the user nice error messages.

But if ODP.NET is missing or not installed properly, the applications fails miserably, even before a connection is attempted. Just the reference to odp.net is there, the application fails with a system.IO.FileNotFoundException that we cannot catch.

How do we handle this situation gracefully? Someting like som sort of probing for odp.net under the control of exception handling. Any thoughts?

Best regards Niels Jespersen

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points