ODP. 220.127.116.11, Win 7 x64, Oracle 18.104.22.168 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
What are you using for an installer? That'd be the ideal place to look for the missing dependency.
At runtime, you can try this: http://stackoverflow.com/questions/1111264/can-i-catch-a-missing-dll-error-during-application-load-in-c