Entity Framework Deployment Problem -Unable to find provider

Entity Framework Deployment Problem -Unable to find provider

Postby pleb » Tue 04 Nov 2008 01:00

Hi There,

I've built a little feed down loader which parses and saves the data in a database using the Entity Framework and MySQL provider.

I have some command lines args which force the creation and deletion of the database. These use raw ado.net and the MySQL driver. They work fine. :shock:

When I go to import the feed data I get this message

"The specified store provider cannot be found in the configuration, or is not valid."


However, when I run the command line program on my development box it works fine. :roll:

Initially I thought it'd be a dll missing from the deployment but CoreLab.Data and CoreLab.MySql are there.

Does anyone have any ideas, that I could try?

Pleb
pleb
 
Posts: 37
Joined: Mon 23 Jun 2008 06:21
Location: Melbourne, Australia

Postby AndreyR » Tue 04 Nov 2008 11:04

You should add to the machine.config section the following lines:
Code: Select all

Also check that the assembly CoreLab.MySql.Entity is available for your application.
AndreyR
Devart Team
 
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Postby pleb » Wed 05 Nov 2008 00:42

Thank you for the hints.

I added the following to the app.config file (Machine config is a little to low level for one application)

Code: Select all
   
      
         
      

   



and included the CoreLab.MySql.Entity assembly in the deployment.
pleb
 
Posts: 37
Joined: Mon 23 Jun 2008 06:21
Location: Melbourne, Australia

web.config solution

Postby whittet » Thu 05 May 2011 19:44

When deploying to another developer machine, adding the
bold section in web.config resolved my error.






whittet
 
Posts: 1
Joined: Thu 05 May 2011 19:38
Location: Minneapolis

Deploying WPF App with DotConnect for Oracle using ClickOnce

Postby dcuser » Fri 01 Jul 2011 10:09

Are you deploying using ClickOnce method or installSheild? We are having similar issues using clickOnce deployment method. I have tried both including the DBProviderFactory segment in app.config and including Oracle.Entity.dll file with the app. But, neither solves the error. I would appreciate any help.
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: 7282
Joined: Thu 14 Aug 2008 12:44


Return to dotConnect for MySQL