Oracle..data and DBFactoryProvider Deploy issues

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
Avanata
Posts: 3
Joined: Thu 12 Mar 2009 10:34

Oracle..data and DBFactoryProvider Deploy issues

Post by Avanata » Tue 05 Apr 2011 08:40

Dear all,

I've got some trouble deploying oracle.data on a productions machine using factory.
After reading other topics I've done following:

- Copied devart.data.dll and devart.data.oracle.dll to the app directory
- Added the following entry to the app.config:



I copied this line from my development machine.config file.
I checked the version of the dll, they are the same.

This will not work on the production machine.
DbProviderFactories.GetFactoryClasses() will give no Devart.Data.Oracle and will further lead to "factory provider not found".

But, if i include the entry into the machine.config of the production machine, everything's run fine.

Why is this not working with the app.config?

regards

Bonsahib
Posts: 10
Joined: Fri 04 Mar 2011 13:48

Post by Bonsahib » Wed 06 Apr 2011 11:45

Hi Avanata,

does your app.config-section look like this?

Code: Select all

...

    
      
      
    
  
...
The remove tag will be ignored if no devart provider is registered yet.

If your app.config looks like that, it should work.
If you work with certain functionality of Devart.Data.Oracle.Entity (e.g. OracleConnection) you also have to add the Devart.Data.Oracle.Entity.dll to your output.

Andi

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Post by Shalex » Wed 06 Apr 2011 15:10

Bonsahib, thank you for your answer.

Avanata, have you resolved the problem? For more information about deployment, please refer to http://www.devart.com/dotconnect/oracle ... yment.html.

Avanata
Posts: 3
Joined: Thu 12 Mar 2009 10:34

Post by Avanata » Thu 07 Apr 2011 16:14

I've allready read all the deployment informations.

My app.config looks like this:











I have copied the Devart.Data.Oracle.Entity.dll to the app folder

the effect ist the same as before - it will not work (provider is not found).
the only way to make it work is to include the settings into the machine.config

am I missing something simple here?

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Post by Shalex » Fri 08 Apr 2011 08:08

Avanata, please post here your call stack and the text of inner exception if any.

Avanata
Posts: 3
Joined: Thu 12 Mar 2009 10:34

Post by Avanata » Mon 11 Apr 2011 08:39

The exception is (in german): {"Der angeforderte .Net Framework-Datenprovider kann nicht gefunden werden. Er ist ggf. nicht installiert."}
in english: Unable to find the requested .Net Framework Data Provider. It may not be installed.
there is no inner exception

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Mon 11 Apr 2011 11:29

Have you placed Devart.Data.dll, Devart.Data.Oracle.dll and Devart.Data.Oracle.Entity.dll (of the corresponding .NET Framework version) to the Bin folder of your application?

dcuser
Posts: 12
Joined: Mon 14 Mar 2011 12:49

Post by dcuser » Fri 01 Jul 2011 10:15

Avanata,

Did you get this resolved? What was the solution? Thanks for your response.

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Post by Shalex » Fri 01 Jul 2011 15:42

dcuser, we have answered you in this thread: http://www.devart.com/forums/viewtopic.php?t=21401.

Post Reply