Page 1 of 1

What do I need to distribute ADO.NET Entity applications?

Posted: Wed 25 Mar 2009 10:59
by msX
I want to distribute an application that uses ADO.NET Enity technology together with dotConnect for Oracle (5.0.22). I put all necessary files (Devart.Data, .Oracle, .Oracle.Entity, .Oracle.Linq) to the bin directory. On the developer machine, everything works fine. On another machine, where dotConnect for Oracle is not installed, I'll get the following error message:

System.ArgumentException: Der angegebene Speicheranbieter kann nicht in der Konfiguration gefunden werden oder ist ungültig. ---> System.ArgumentException: Der angeforderte .Net Framework-Datenprovider kann nicht gefunden werden. Er ist ggf. nicht installiert.
bei System.Data.Common.DbProviderFactories.GetFactory(String providerInvariantName)
bei System.Data.EntityClient.EntityConnection.GetFactory(String providerString)

(It says that the .NET Framework Dataprovider could not be found)

(Connection string uses provider=Devart.Data.Oracle )

How can I register other dataproviders for DBProviderFactories? (I do not want to use machine.conf - I want to register DataProviders that are in the bin directory of the application)

Posted: Wed 25 Mar 2009 11:16
by Shalex
In this case you need to register dotConnect for Oracle in the *.config file of your application.
This question was discussed here: http://www.devart.com/forums/viewtopic.php?p=41785 .
For more information, please refer to our online documentation:
http://www.devart.com/dotconnect/oracle ... using.html , the Entity Framework Support part, the Deploying an Entity Framework Project section.

Posted: Thu 26 Mar 2009 15:18
by msX
I added

Code: Select all

  
    
      
      
    
  
and it works perfectly. Thank you! :)