Page 1 of 1

Provider not found in Configuration

Posted: Tue 25 Aug 2009 15:18
by zoomage
I'm having an issue when I try to deploy the application using the clickonce method. When the application installs successfully and then attempts to run I get the following message on a user workstation (see below). I've checked to ensure that I've set the references to "Copy Local" and I'm not getting any License issues. What's missing???

Code: Select all

Type : System.ArgumentException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 Message : The specified store provider cannot be found in the configuration, or is not valid.
Source : System.Data.Entity
Help link : 
ParamName : 
Data : System.Collections.ListDictionaryInternal
TargetSite : System.Data.Common.DbProviderFactory GetFactory(System.String)
Stack Trace :    at System.Data.EntityClient.EntityConnection.GetFactory(String providerString)
   at System.Data.EntityClient.EntityConnection.ChangeConnectionString(String newConnectionString)
   at System.Data.EntityClient.EntityConnection..ctor(String connectionString)
   at System.Data.Objects.ObjectContext.CreateEntityConnection(String connectionString)
   at System.Data.Objects.ObjectContext..ctor(String connectionString, String defaultContainerName)
 

Posted: Tue 25 Aug 2009 15:48
by zoomage
In case someone else finds this useful I was able to solve this problem by using the following statement in the app.config. Don't forget to change the version number to match you version of dotConnect for Oracle.








Ever find a solution

Posted: Mon 28 Sep 2009 21:06
by niko
Did you ever find a solution to this other than the posted workaround? This seems like a real pain and shouldn't be necessary. I just ran into the same problem and had to make the same change you posted to make it work.

Posted: Tue 29 Sep 2009 07:58
by Shalex
This is not a workaround, but the solution. Your environment has to be informed about the existence of the provider factory. The provider factory is described either in machine.config (globally), in app.config or in web.config (just for your application), but not in both files.
For more information, please refer to http://www.devart.com/dotconnect/oracle ... yment.html .