This is a migrated thread and some comments may be shown as answers.

"Providername is not compatible with the Oracle Client"

4 Answers 309 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Raj
Top achievements
Rank 1
Raj asked on 21 Dec 2012, 07:13 AM

Error message "Providername is not compatible with the Oracle Client"

Environmnet : Visual STudio 2010

Oralce 11g database

Telerik ORM 11.2.7.3

Installed ODP.NET

Note: Able to connect to Oracle with Toad.

any help please?

4 Answers, 1 is accepted

Sort by
0
Ralph Waldenmaier
Telerik team
answered on 21 Dec 2012, 07:50 AM
Hello Raj,
The installed version of your ODP.NET driver must match the version of the program where you want to use it. If your application runs as x64, then you need to have installed the ODP.NET x64 version. Is this the case on your machine? The appropriate driver can be found here.
Additionally please check if you have the appropriate factory entry in your machine config. See the following as an example.
<DbProviderFactories>
    <add name="Oracle Data Provider for .NET" invariant="Oracle.DataAccess.Client" description="Oracle Data Provider for .NET" type="Oracle.DataAccess.Client.OracleClientFactory, Oracle.DataAccess, Version=4.112.3.0, Culture=neutral, PublicKeyToken=89b483f429c47342"/>
</DbProviderFactories>
If you are working with the Oracle ODP.NET instant client, then you might find this discussion on stack overflow interesting.

Hope this helps.
Do come back if you need further assistance.
Greetings,
Ralph
the Telerik team
Q3'12 SP1 of OpenAccess ORM packs Multi-Table Entities mapping support. Check it out.
0
Raj
Top achievements
Rank 1
answered on 21 Dec 2012, 08:01 AM
The drivers are appropriate and config file setting are same.

Installed full version of ODP.NET client. Still facing the issue?

any help?
0
Ralph Waldenmaier
Telerik team
answered on 21 Dec 2012, 10:27 AM
Hello Raj,

Attached you can find a small application that basically loads a OracleFactory via a provider name. This is also used within OpenAccess. Can you please check that this is working when you compile it with x86 and with x64 settings. What happens if you specify Any CPU?
Basically when this exception is thrown, the managed oracle driver uses the unmanaged OraOps11w.dll to check the version compatibility. There seems to be a version mismatch in your setup that causes this error.
Do you have more then one Oracle client installed on this machine? Which one will be resolved first? This can basically be derived from the Path environment variable. In my case it the first one is "C:\app\ralph\product\11.2.0\client_2".
Also can you provide more details about the environment where you are using this. Are you working with a web application?

I am looking forward to hearing from you soon and getting this solved with you.

Regards,
Ralph
the Telerik team
Q3'12 SP1 of OpenAccess ORM packs Multi-Table Entities mapping support. Check it out.
0
Raj
Top achievements
Rank 1
answered on 21 Dec 2012, 01:17 PM
Thanks I will try and let you know
Tags
General Discussions
Asked by
Raj
Top achievements
Rank 1
Answers by
Ralph Waldenmaier
Telerik team
Raj
Top achievements
Rank 1
Share this question
or