Page 1 of 1

Oracle..data and DBFactoryProvider Deploy issues

Posted: Tue 05 Apr 2011 08:40
by Avanata
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

Posted: Wed 06 Apr 2011 11:45
by Bonsahib
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

Posted: Wed 06 Apr 2011 15:10
by Shalex
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.

Posted: Thu 07 Apr 2011 16:14
by Avanata
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?

Posted: Fri 08 Apr 2011 08:08
by Shalex
Avanata, please post here your call stack and the text of inner exception if any.

Posted: Mon 11 Apr 2011 08:39
by Avanata
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

Posted: Mon 11 Apr 2011 11:29
by AndreyR
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?

Posted: Fri 01 Jul 2011 10:15
by dcuser
Avanata,

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

Posted: Fri 01 Jul 2011 15:42
by Shalex
dcuser, we have answered you in this thread: http://www.devart.com/forums/viewtopic.php?t=21401.