Oracle connection has been deprecated, is obsolete

When I compile my VB.net project I am getting a few warning messages. I am wondering if there is a way to get rid of the warning messages? I do know that I can suppress the messages in Visual Studio, but I am seeking a better solution. Besides suppressing the message via the project properties dialog box, is there a better was that does not involved suppression via visual studio? Manually suppressing it?

I believe the error message has to do with the fact that the types in System.Data.OracleClient are deprecated. Anyway, if a .NET expert has some valuable insight on how to get rid of the error message without manually suppressing it, I would appreciate the help.

Ultimately I am wondering if there is something I can implement in the VB.net code or IDE .net framework, as opposed to having to download anything from Oracle to include in my project. Also I am using .net 4.5.2

warning BC4000:  'OracleConnection' is obsolete: OracleConnection has been deprecated. http://go.microsoft.com/fwlink/?LinkID=144260.
LVL 2
brgdotnetcontractorAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

slightwv (䄆 Netminder) Commented:
I know you said you don't want to download anything from Oracle but you really need to use a current and supported data access provider.

As I have suggested before:  I would strongly encourage you to use the ODP.Net Managed Client from Oracle.

Your previous question:
https://www.experts-exchange.com/questions/29039684/How-to-install-oracle-web-dll-into-the-GAC-for-my-Asp-net-web-application.html

It is free and there is no install.  Just one DLL that you need for your project and you are good and everything will work.

I would suggest the XCopy version:
http://www.oracle.com/technetwork/topics/dotnet/downloads/odacdeploy-4242173.html

If you want the Visual Studio tools then:
http://www.oracle.com/technetwork/topics/dotnet/downloads/net-downloads-160392.html
1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
AndyAinscowFreelance programmer / ConsultantCommented:
Two points.
You can suppress the warning - but you have to do it manually
Also read the warning.  It means at some time in the future your app won't work anymore.  (Is hiding the warning a good idea?)
>>OracleConnection' is obsolete: OracleConnection has been deprecated.
0
Geert GOracle dbaCommented:
Besides it being deprecated
before we changed to odp.net we found the Oracleconnection didn't work for certain selects

so it's really time to switchover
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.