Deploying an EF Application
Posted: Tue 07 Sep 2010 18:14
I have a standalone windows application (not a webapp) that uses Entity Framework (EF) to access an Oracle database through the DevArt dotConnect for Oracle entity model. On my setup, it works perfectly.
Moving all the binaries to another computer, however doesn't work so well. I'm getting the following error:
I did follow the instructions posted here:
http://www.devart.com/dotconnect/oracle ... yment.html
In my own app.config, I've added the stanza:
The version number matches what I have installed in the GAC. I've also manually included the Devart.Data.Oracle.Entity.dll (from my install) with my application, though it isn't really referenced by any project.
Not sure where I'm going wrong... Anything obvious I'm missing?
Thanks,
Robin
Moving all the binaries to another computer, however doesn't work so well. I'm getting the following error:
Code: Select all
System.Configuration.ConfigurationErrorsException: Failed to find or load the registered .Net Framework Data Provider.
at System.Data.Common.DbProviderFactories.GetFactory(DataRow providerRow)
at System.Data.Common.DbProviderFactories.GetFactory(String providerInvariantName)
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)
at ForensicsDatabase.ForensicsEntities..ctor()
at ForensicsDal.ForensicsCoreDalc.LoadPlates(DateTime startDate, DateTime endDate, Boolean newOnly, String queryString)
at SelectionControl.ViewModels.SelectionViewModel.LoadPlatesWork(Object sender, DoWorkEventArgs e)
http://www.devart.com/dotconnect/oracle ... yment.html
In my own app.config, I've added the stanza:
Code: Select all
Not sure where I'm going wrong... Anything obvious I'm missing?
Thanks,
Robin