No Instance field of a System.Data.Common.DbProviderFactory

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for MySQL
Post Reply
munsh
Posts: 3
Joined: Sun 05 Dec 2010 14:20

No Instance field of a System.Data.Common.DbProviderFactory

Post by munsh » Sun 05 Dec 2010 14:33

I have been breaking my head to make this work client system. I have followed the instructions mentioned in the installation , license documentation.

I am using ADO.NET entity data model.

I am not sure what else I am missing, I have lost all my time in this. So any help would be great.


DLL's
Devart.Data.MySql.dll
Devart.Data.MySql.Entity.dll

Here is my App config file:















Here is the exception I get:
System.InvalidOperationException: The requested .Net Framework Data Provider's implementation does not have an Instance field of a System.Data.Common.DbProviderFactory derived type.

I couldn't get pass beyond this point.

Many Thanks
Munsh

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Mon 06 Dec 2010 14:16

Have you added Devart.Data.dll? It is necessary as well, this information is available here.
I have deleted your duplicate post.

munsh
Posts: 3
Joined: Sun 05 Dec 2010 14:20

Post by munsh » Tue 07 Dec 2010 21:19

I tried Devart.Data.dll and still it does not work.

In my dev pc if I remove the dbproviders configuration it works. However in client PC if I remove that I get provider not found message.

I couldn't attach my sample to show what I am doing. Any directions please?

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Wed 08 Dec 2010 09:46

You are using a wrong type in provider configuration. There should be Devart.Data.MySql.MySqlProviderFactory instead of Devart.Data.MySql.MySqlConnection.

munsh
Posts: 3
Joined: Sun 05 Dec 2010 14:20

Post by munsh » Fri 10 Dec 2010 08:52

Thank you very much. That solved the problem. Not sure where I picked up the incorrect values.

Post Reply