Oracle..data and DBFactoryProvider Deploy issues

Oracle..data and DBFactoryProvider Deploy issues

Postby 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
Avanata
 
Posts: 3
Joined: Thu 12 Mar 2009 10:34

Postby Bonsahib » Wed 06 Apr 2011 11:45

Hi Avanata,

does your app.config-section look like this?

Code: Select all

...

   
     
                     invariant="Devart.Data.Oracle"
               description="Devart dotConnect for Oracle"
               type="Devart.Data.Oracle.OracleProviderFactory,               Devart.Data.Oracle, Version=6.10.126.0, Culture=neutral, PublicKeyToken=09af7300eec23701" />
   

 

...


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
Bonsahib
 
Posts: 10
Joined: Fri 04 Mar 2011 13:48

Postby 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/docs/?deployment.html.
Shalex
Devart Team
 
Posts: 7391
Joined: Thu 14 Aug 2008 12:44

Postby 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?
Avanata
 
Posts: 3
Joined: Thu 12 Mar 2009 10:34

Postby Shalex » Fri 08 Apr 2011 08:08

Avanata, please post here your call stack and the text of inner exception if any.
Shalex
Devart Team
 
Posts: 7391
Joined: Thu 14 Aug 2008 12:44

Postby 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
Avanata
 
Posts: 3
Joined: Thu 12 Mar 2009 10:34

Postby 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?
AndreyR
Devart Team
 
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Postby dcuser » Fri 01 Jul 2011 10:15

Avanata,

Did you get this resolved? What was the solution? Thanks for your response.
dcuser
 
Posts: 12
Joined: Mon 14 Mar 2011 12:49

Postby Shalex » Fri 01 Jul 2011 15:42

dcuser, we have answered you in this thread: http://www.devart.com/forums/viewtopic.php?t=21401.
Shalex
Devart Team
 
Posts: 7391
Joined: Thu 14 Aug 2008 12:44


Return to dotConnect for Oracle