System.Data.OracleClient requires Oracle client software version 8.1.7 or greater


I have a C# application which updating records in Oracle 11g database. It was working fine on another testing environment which running WinXP. After I copied to another XP machine, I got error "System.Data.OracleClient requires Oracle client software version 8.1.7 or greater". The old machine is running Oracle9 and the new one is running Oracle10. In the new Xp machine I can use sqlplus to log into the database.

I saw there are solutions for folder permission online. I gave Authenticated user all the permission needed. but still got the same error.

Please suggest.
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:
When you installed the Oracle Client, did you also install ODP.Net?  This isn't an automatic install.

I also expect you'll need to recompile the application.  ODP.Net doesn't like mixing versions.  If you compiled with a 9i version, you will likely need to recompile with the 10g version.

Although that shouldn't generate the error you are now getting, it will likely be the next error you receive.

There is a good discussion about that one in a previous question here:
mrongAuthor Commented:
ODP.Netis Oracle data provider for .net?
mrongAuthor Commented:
Oracle data provider for .net is installed. thanks
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

slightwv (䄆 Netminder) Commented:
mrongAuthor Commented:
In the app references, I found the following info for
runtime version: v2.0.50727

in the property of my C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727, I found the following
File version: 2.0.50727.3082

Does it mean they match?

slightwv (䄆 Netminder) Commented:
Search your oracle installation folder for Oracle.DataAccess.dll.

What is the version of that file?
mrongAuthor Commented:
slightwv (䄆 Netminder) Commented:
I believe is the Microsoft client file that has been deprecated and shouldn't be used.

Do you have a reference to Oracle.DataAccess in C:\WINDOWS\Microsoft.NET somewhere?

If not, I don't believe the file has been properly registered in the GAC.

If this is a .Net 2.0 project, take a look at:

You might also try copying Oracle.DataAccess.dll to the bin folder of the app.
mrongAuthor Commented:
how to check if I have a reference to Oracle.DataAccess in C:\WINDOWS\Microsoft.NET somewhere?
slightwv (䄆 Netminder) Commented:
Windows Explorer and 'Search'?
mrongAuthor Commented:
searched and nothing found.
If I copy Oracle.DataAccess.dll to the bin folder of app, Do I also need to add it to the app references in VS?
slightwv (䄆 Netminder) Commented:
If you have the project available in VS, then just recompile it using the new drivers.  Yes, you need to add the reference to the version you currently have installed.
mrongAuthor Commented:
tried but no luck.
Would it help if I removed Oracle10g client and install Oracle 9g client?
The old machine is running oracle 9g client....
slightwv (䄆 Netminder) Commented:
Since 9i and 10g are no longer supported I guess it doesn't make any difference which one you use.

I would always encourage you to use the newest version you can.

What version of the database is this app connecting to?
mrongAuthor Commented:
The database is Oracle 11g and the app is running on a win2003 server which has Oracle 9 client installed.
I want to copy the app to my winXP testing machine and modify the code then copy back.

slightwv (䄆 Netminder) Commented:
>>The database is Oracle 11g

I would forget the 9i and 10g clients and go with the new Oracle Managed Driver.

This doesn't require any Oracle Client install.

I've been experimenting with it since it was released and am happy with it so far.

For 32Bit apps:

ODAC 12c Release 2 (          [Released December 20, 2013]
Download the ODP.NET, Managed Driver Xcopy version only

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
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

From novice to tech pro — start learning today.